home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2004 October / My Disc.iso / patch / UT2004 Bonus Pack / ut2004-ecebonuspack.exe / System / OnslaughtBP.u / ONSDualACSideGun_ONSArtillery_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-09-14  |  12.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5d cd 01 2f 2f 2d 2d 2d |........|]..//---|
|00000010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000040| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 0a 2f 2f 0d 0a 2f 2f |--------|..//..//|
|00000050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0a 63 6c 61 |--------|---..cla|
|00000090| 73 73 20 4f 4e 53 41 72 | 74 69 6c 6c 65 72 79 20 |ss ONSAr|tillery |
|000000a0| 65 78 74 65 6e 64 73 20 | 4f 4e 53 57 68 65 65 6c |extends |ONSWheel|
|000000b0| 65 64 43 72 61 66 74 3b | 0d 0a 0d 0a 23 65 78 65 |edCraft;|....#exe|
|000000c0| 63 20 4f 42 4a 20 4c 4f | 41 44 20 46 49 4c 45 3d |c OBJ LO|AD FILE=|
|000000d0| 4f 4e 53 42 50 54 65 78 | 74 75 72 65 73 2e 75 74 |ONSBPTex|tures.ut|
|000000e0| 78 0d 0a 0d 0a 76 61 72 | 20 66 6c 6f 61 74 20 20 |x....var| float |
|000000f0| 20 59 61 77 41 63 63 65 | 6c 2c 20 50 69 74 63 68 | YawAcce|l, Pitch|
|00000100| 41 63 63 65 6c 3b 0d 0a | 76 61 72 20 66 6c 6f 61 |Accel;..|var floa|
|00000110| 74 20 20 20 43 6c 69 65 | 6e 74 55 70 64 61 74 65 |t Clie|ntUpdate|
|00000120| 54 69 6d 65 3b 0d 0a 76 | 61 72 20 66 6c 6f 61 74 |Time;..v|ar float|
|00000130| 09 53 74 61 72 74 44 72 | 69 76 69 6e 67 54 69 6d |.StartDr|ivingTim|
|00000140| 65 3b 09 2f 2f 20 41 49 | 20 48 69 6e 74 0d 0a 76 |e;.// AI| Hint..v|
|00000150| 61 72 20 52 6f 74 61 74 | 6f 72 20 4c 61 73 74 41 |ar Rotat|or LastA|
|00000160| 69 6d 3b 0d 0a 76 61 72 | 20 62 6f 6f 6c 20 20 20 |im;..var| bool |
|00000170| 20 62 4a 75 73 74 44 65 | 70 6c 6f 79 65 64 3b 0d | bJustDe|ployed;.|
|00000180| 0a 76 61 72 20 4f 4e 53 | 4d 6f 72 74 61 72 43 61 |.var ONS|MortarCa|
|00000190| 6d 65 72 61 20 4d 6f 72 | 74 61 72 43 61 6d 65 72 |mera Mor|tarCamer|
|000001a0| 61 3b 0d 0a 0d 0a 76 61 | 72 20 66 6c 6f 61 74 20 |a;....va|r float |
|000001b0| 4c 61 73 74 4c 6f 63 61 | 6c 4d 73 67 54 69 6d 65 |LastLoca|lMsgTime|
|000001c0| 3b 0d 0a 76 61 72 20 73 | 74 72 69 6e 67 20 41 72 |;..var s|tring Ar|
|000001d0| 74 69 4c 6f 63 6b 4f 6e | 43 6c 61 73 73 53 74 72 |tiLockOn|ClassStr|
|000001e0| 69 6e 67 3b 0d 0a 0d 0a | 72 65 70 6c 69 63 61 74 |ing;....|replicat|
|000001f0| 69 6f 6e 0d 0a 7b 0d 0a | 20 20 20 20 72 65 6c 69 |ion..{..| reli|
|00000200| 61 62 6c 65 20 69 66 20 | 28 52 6f 6c 65 20 3d 3d |able if |(Role ==|
|00000210| 20 52 4f 4c 45 5f 41 75 | 74 68 6f 72 69 74 79 29 | ROLE_Au|thority)|
|00000220| 0d 0a 20 20 20 20 20 20 | 20 20 4d 6f 72 74 61 72 |.. | Mortar|
|00000230| 43 61 6d 65 72 61 3b 0d | 0a 0d 0a 09 72 65 6c 69 |Camera;.|....reli|
|00000240| 61 62 6c 65 20 69 66 20 | 28 52 6f 6c 65 20 3c 20 |able if |(Role < |
|00000250| 52 4f 4c 45 5f 41 75 74 | 68 6f 72 69 74 79 29 0d |ROLE_Aut|hority).|
|00000260| 0a 20 20 20 20 20 20 20 | 20 53 65 72 76 65 72 41 |. | ServerA|
|00000270| 69 6d 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |im;..}..|..functi|
|00000280| 6f 6e 20 62 6f 6f 6c 20 | 49 73 41 72 74 69 6c 6c |on bool |IsArtill|
|00000290| 65 72 79 28 29 0d 0a 7b | 0d 0a 09 72 65 74 75 72 |ery()..{|...retur|
|000002a0| 6e 20 74 72 75 65 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |n true;.|.}....fu|
|000002b0| 6e 63 74 69 6f 6e 20 62 | 6f 6f 6c 20 49 73 44 65 |nction b|ool IsDe|
|000002c0| 70 6c 6f 79 65 64 28 29 | 0d 0a 7b 0d 0a 09 6c 6f |ployed()|..{...lo|
|000002d0| 63 61 6c 20 4f 4e 53 41 | 72 74 69 6c 6c 65 72 79 |cal ONSA|rtillery|
|000002e0| 43 61 6e 6e 6f 6e 20 43 | 61 6e 6e 6f 6e 3b 0d 0a |Cannon C|annon;..|
|000002f0| 0d 0a 09 43 61 6e 6e 6f | 6e 20 3d 20 4f 4e 53 41 |...Canno|n = ONSA|
|00000300| 72 74 69 6c 6c 65 72 79 | 43 61 6e 6e 6f 6e 28 57 |rtillery|Cannon(W|
|00000310| 65 61 70 6f 6e 73 5b 41 | 63 74 69 76 65 57 65 61 |eapons[A|ctiveWea|
|00000320| 70 6f 6e 5d 29 3b 0d 0a | 09 69 66 20 28 20 28 43 |pon]);..|.if ( (C|
|00000330| 61 6e 6e 6f 6e 20 21 3d | 20 4e 6f 6e 65 29 20 26 |annon !=| None) &|
|00000340| 26 20 28 43 61 6e 6e 6f | 6e 2e 4d 6f 72 74 61 72 |& (Canno|n.Mortar|
|00000350| 43 61 6d 65 72 61 20 21 | 3d 20 4e 6f 6e 65 29 20 |Camera !|= None) |
|00000360| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 74 72 75 65 |)....ret|urn true|
|00000370| 3b 0d 0a 09 69 66 20 28 | 20 4c 65 76 65 6c 2e 54 |;...if (| Level.T|
|00000380| 69 6d 65 53 65 63 6f 6e | 64 73 20 2d 20 43 61 6e |imeSecon|ds - Can|
|00000390| 6e 6f 6e 2e 4c 61 73 74 | 43 61 6d 65 72 61 4c 61 |non.Last|CameraLa|
|000003a0| 75 6e 63 68 20 3e 20 43 | 61 6e 6e 6f 6e 2e 43 61 |unch > C|annon.Ca|
|000003b0| 6d 65 72 61 4c 61 75 6e | 63 68 57 61 69 74 20 29 |meraLaun|chWait )|
|000003c0| 0d 0a 09 09 72 65 74 75 | 72 6e 20 74 72 75 65 3b |....retu|rn true;|
|000003d0| 0d 0a 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|000003e0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|000003f0| 4b 44 72 69 76 65 72 45 | 6e 74 65 72 28 50 61 77 |KDriverE|nter(Paw|
|00000400| 6e 20 50 29 0d 0a 7b 0d | 0a 09 53 75 70 65 72 2e |n P)..{.|..Super.|
|00000410| 4b 44 72 69 76 65 72 45 | 6e 74 65 72 28 50 29 3b |KDriverE|nter(P);|
|00000420| 0d 0a 09 53 74 61 72 74 | 44 72 69 76 69 6e 67 54 |...Start|DrivingT|
|00000430| 69 6d 65 20 3d 20 4c 65 | 76 65 6c 2e 54 69 6d 65 |ime = Le|vel.Time|
|00000440| 53 65 63 6f 6e 64 73 3b | 0d 0a 7d 0d 0a 0d 0a 66 |Seconds;|..}....f|
|00000450| 75 6e 63 74 69 6f 6e 20 | 66 6c 6f 61 74 20 42 6f |unction |float Bo|
|00000460| 74 44 65 73 69 72 65 61 | 62 69 6c 69 74 79 28 41 |tDesirea|bility(A|
|00000470| 63 74 6f 72 20 53 2c 20 | 69 6e 74 20 54 65 61 6d |ctor S, |int Team|
|00000480| 49 6e 64 65 78 2c 20 41 | 63 74 6f 72 20 4f 62 6a |Index, A|ctor Obj|
|00000490| 65 63 74 69 76 65 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |ective).|.{...loc|
|000004a0| 61 6c 20 53 71 75 61 64 | 41 49 20 53 71 75 61 64 |al Squad|AI Squad|
|000004b0| 3b 0d 0a 0d 0a 09 53 71 | 75 61 64 20 3d 20 53 71 |;.....Sq|uad = Sq|
|000004c0| 75 61 64 41 49 28 53 29 | 3b 0d 0a 0d 0a 09 69 66 |uadAI(S)|;.....if|
|000004d0| 20 28 20 53 71 75 61 64 | 2e 47 65 74 4f 72 64 65 | ( Squad|.GetOrde|
|000004e0| 72 73 28 29 20 3d 3d 20 | 27 44 65 66 65 6e 64 27 |rs() == |'Defend'|
|000004f0| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 30 3b 0d | )....re|turn 0;.|
|00000500| 0a 0d 0a 09 72 65 74 75 | 72 6e 20 73 75 70 65 72 |....retu|rn super|
|00000510| 2e 42 6f 74 44 65 73 69 | 72 65 61 62 69 6c 69 74 |.BotDesi|reabilit|
|00000520| 79 28 53 2c 54 65 61 6d | 49 6e 64 65 78 2c 4f 62 |y(S,Team|Index,Ob|
|00000530| 6a 65 63 74 69 76 65 29 | 3b 0d 0a 7d 0d 0a 0d 0a |jective)|;..}....|
|00000540| 66 75 6e 63 74 69 6f 6e | 20 56 65 68 69 63 6c 65 |function| Vehicle|
|00000550| 46 69 72 65 28 62 6f 6f | 6c 20 62 57 61 73 41 6c |Fire(boo|l bWasAl|
|00000560| 74 46 69 72 65 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |tFire)..|{...loca|
|00000570| 6c 20 76 65 63 74 6f 72 | 20 54 61 72 67 65 74 44 |l vector| TargetD|
|00000580| 69 72 3b 0d 0a 09 6c 6f | 63 61 6c 20 72 6f 74 61 |ir;...lo|cal rota|
|00000590| 74 6f 72 20 41 69 6d 52 | 6f 74 3b 0d 0a 0d 0a 09 |tor AimR|ot;.....|
|000005a0| 69 66 20 28 20 62 57 61 | 73 41 6c 74 46 69 72 65 |if ( bWa|sAltFire|
|000005b0| 20 29 0d 0a 09 7b 0d 0a | 09 09 69 66 20 28 20 20 | )...{..|..if ( |
|000005c0| 4d 6f 72 74 61 72 43 61 | 6d 65 72 61 20 21 3d 20 |MortarCa|mera != |
|000005d0| 4e 6f 6e 65 20 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |None )..|..{.....|
|000005e0| 69 66 20 28 20 21 4d 6f | 72 74 61 72 43 61 6d 65 |if ( !Mo|rtarCame|
|000005f0| 72 61 2e 62 44 65 70 6c | 6f 79 65 64 20 29 0d 0a |ra.bDepl|oyed )..|
|00000600| 09 09 09 7b 0d 0a 09 09 | 09 09 69 66 20 28 20 41 |...{....|..if ( A|
|00000610| 49 43 6f 6e 74 72 6f 6c | 6c 65 72 28 49 6e 73 74 |IControl|ler(Inst|
|00000620| 69 67 61 74 6f 72 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |igator.C|ontrolle|
|00000630| 72 29 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |r) != No|ne )....|
|00000640| 09 09 7b 0d 0a 09 09 09 | 09 09 72 65 74 75 72 6e |..{.....|..return|
|00000650| 3b 0d 0a 09 09 09 09 7d | 0d 0a 09 09 09 09 4d 6f |;......}|......Mo|
|00000660| 72 74 61 72 43 61 6d 65 | 72 61 2e 44 65 70 6c 6f |rtarCame|ra.Deplo|
|00000670| 79 28 29 3b 0d 0a 09 09 | 09 09 43 75 73 74 6f 6d |y();....|..Custom|
|00000680| 41 69 6d 20 3d 20 57 65 | 61 70 6f 6e 73 5b 41 63 |Aim = We|apons[Ac|
|00000690| 74 69 76 65 57 65 61 70 | 6f 6e 5d 2e 57 65 61 70 |tiveWeap|on].Weap|
|000006a0| 6f 6e 46 69 72 65 52 6f | 74 61 74 69 6f 6e 3b 0d |onFireRo|tation;.|
|000006b0| 0a 09 09 09 7d 0d 0a 09 | 09 09 65 6c 73 65 0d 0a |....}...|..else..|
|000006c0| 09 09 09 7b 0d 0a 09 09 | 09 09 69 66 20 28 20 41 |...{....|..if ( A|
|000006d0| 49 43 6f 6e 74 72 6f 6c | 6c 65 72 28 49 6e 73 74 |IControl|ler(Inst|
|000006e0| 69 67 61 74 6f 72 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |igator.C|ontrolle|
|000006f0| 72 29 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |r) != No|ne )....|
|00000700| 09 09 09 62 57 61 73 41 | 6c 74 46 69 72 65 20 3d |...bWasA|ltFire =|
|00000710| 20 66 61 6c 73 65 3b 0d | 0a 09 09 09 09 65 6c 73 | false;.|.....els|
|00000720| 65 0d 0a 09 09 09 09 09 | 4d 6f 72 74 61 72 43 61 |e.......|MortarCa|
|00000730| 6d 65 72 61 2e 44 65 73 | 74 72 6f 79 28 29 3b 0d |mera.Des|troy();.|
|00000740| 0a 09 09 09 7d 0d 0a 09 | 09 09 72 65 74 75 72 6e |....}...|..return|
|00000750| 3b 0d 0a 09 09 7d 0d 0a | 09 09 65 6c 73 65 20 69 |;....}..|..else i|
|00000760| 66 20 28 20 28 41 49 43 | 6f 6e 74 72 6f 6c 6c 65 |f ( (AIC|ontrolle|
|00000770| 72 28 49 6e 73 74 69 67 | 61 74 6f 72 2e 43 6f 6e |r(Instig|ator.Con|
|00000780| 74 72 6f 6c 6c 65 72 29 | 20 21 3d 20 4e 6f 6e 65 |troller)| != None|
|00000790| 29 20 26 26 20 28 43 6f | 6e 74 72 6f 6c 6c 65 72 |) && (Co|ntroller|
|000007a0| 2e 54 61 72 67 65 74 20 | 21 3d 20 4e 6f 6e 65 29 |.Target |!= None)|
|000007b0| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 54 61 72 67 | )....{.|....Targ|
|000007c0| 65 74 44 69 72 20 3d 20 | 43 6f 6e 74 72 6f 6c 6c |etDir = |Controll|
|000007d0| 65 72 2e 54 61 72 67 65 | 74 2e 4c 6f 63 61 74 69 |er.Targe|t.Locati|
|000007e0| 6f 6e 20 2d 20 4c 6f 63 | 61 74 69 6f 6e 3b 0d 0a |on - Loc|ation;..|
|000007f0| 09 09 09 54 61 72 67 65 | 74 44 69 72 2e 5a 20 3d |...Targe|tDir.Z =|
|00000800| 20 30 3b 0d 0a 09 09 09 | 41 69 6d 52 6f 74 20 3d | 0;.....|AimRot =|
|00000810| 20 57 65 61 70 6f 6e 73 | 5b 41 63 74 69 76 65 57 | Weapons|[ActiveW|
|00000820| 65 61 70 6f 6e 5d 2e 43 | 75 72 72 65 6e 74 41 69 |eapon].C|urrentAi|
|00000830| 6d 3b 0d 0a 09 09 09 41 | 69 6d 52 6f 74 2e 50 69 |m;.....A|imRot.Pi|
|00000840| 74 63 68 20 3d 20 30 3b | 0d 0a 09 09 09 69 66 20 |tch = 0;|.....if |
|00000850| 28 20 28 4e 6f 72 6d 61 | 6c 28 54 61 72 67 65 74 |( (Norma|l(Target|
|00000860| 44 69 72 29 20 44 6f 74 | 20 56 65 63 74 6f 72 28 |Dir) Dot| Vector(|
|00000870| 41 69 6d 52 6f 74 29 29 | 20 3c 20 30 2e 39 20 29 |AimRot))| < 0.9 )|
|00000880| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 72 65 74 75 |.....{..|....retu|
|00000890| 72 6e 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 7d 0d 0a |rn;.....|}....}..|
|000008a0| 09 7d 0d 0a 09 53 75 70 | 65 72 2e 56 65 68 69 63 |.}...Sup|er.Vehic|
|000008b0| 6c 65 46 69 72 65 28 62 | 57 61 73 41 6c 74 46 69 |leFire(b|WasAltFi|
|000008c0| 72 65 29 3b 0d 0a 7d 0d | 0a 0d 0a 0d 0a 66 75 6e |re);..}.|.....fun|
|000008d0| 63 74 69 6f 6e 20 41 6c | 74 46 69 72 65 28 20 6f |ction Al|tFire( o|
|000008e0| 70 74 69 6f 6e 61 6c 20 | 66 6c 6f 61 74 20 46 20 |ptional |float F |
|000008f0| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 62 6f 6f |)..{...l|ocal boo|
|00000900| 6c 20 62 48 61 73 43 61 | 6d 65 72 61 3b 0d 0a 0d |l bHasCa|mera;...|
|00000910| 0a 09 62 48 61 73 43 61 | 6d 65 72 61 20 3d 20 28 |..bHasCa|mera = (|
|00000920| 20 4d 6f 72 74 61 72 43 | 61 6d 65 72 61 20 21 3d | MortarC|amera !=|
|00000930| 20 4e 6f 6e 65 20 29 3b | 0d 0a 0d 0a 09 53 75 70 | None );|.....Sup|
|00000940| 65 72 2e 41 6c 74 46 69 | 72 65 28 46 29 3b 0d 0a |er.AltFi|re(F);..|
|00000950| 20 20 20 20 69 66 20 28 | 20 4d 6f 72 74 61 72 43 | if (| MortarC|
|00000960| 61 6d 65 72 61 20 21 3d | 20 4e 6f 6e 65 20 29 0d |amera !=| None ).|
|00000970| 0a 20 20 20 20 7b 0d 0a | 09 09 69 66 20 28 20 52 |. {..|..if ( R|
|00000980| 6f 6c 65 20 3c 20 52 4f | 4c 45 5f 41 75 74 68 6f |ole < RO|LE_Autho|
|00000990| 72 69 74 79 20 20 26 26 | 20 21 4d 6f 72 74 61 72 |rity &&| !Mortar|
|000009a0| 43 61 6d 65 72 61 2e 62 | 44 65 70 6c 6f 79 65 64 |Camera.b|Deployed|
|000009b0| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 4d 6f 72 74 | )....{.|....Mort|
|000009c0| 61 72 43 61 6d 65 72 61 | 2e 44 65 70 6c 6f 79 28 |arCamera|.Deploy(|
|000009d0| 29 3b 0d 0a 09 09 09 43 | 75 73 74 6f 6d 41 69 6d |);.....C|ustomAim|
|000009e0| 20 3d 20 57 65 61 70 6f | 6e 73 5b 41 63 74 69 76 | = Weapo|ns[Activ|
|000009f0| 65 57 65 61 70 6f 6e 5d | 2e 57 65 61 70 6f 6e 46 |eWeapon]|.WeaponF|
|00000a00| 69 72 65 52 6f 74 61 74 | 69 6f 6e 3b 0d 0a 09 09 |ireRotat|ion;....|
|00000a10| 09 62 4a 75 73 74 44 65 | 70 6c 6f 79 65 64 20 3d |.bJustDe|ployed =|
|00000a20| 20 74 72 75 65 3b 0d 0a | 09 09 7d 0d 0a 09 7d 0d | true;..|..}...}.|
|00000a30| 0a 09 69 66 20 28 20 62 | 48 61 73 43 61 6d 65 72 |..if ( b|HasCamer|
|00000a40| 61 20 29 0d 0a 09 09 62 | 57 65 61 70 6f 6e 49 73 |a )....b|WeaponIs|
|00000a50| 41 6c 74 46 69 72 69 6e | 67 20 3d 20 66 61 6c 73 |AltFirin|g = fals|
|00000a60| 65 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |e;..}...|.functio|
|00000a70| 6e 20 53 65 72 76 65 72 | 41 69 6d 28 69 6e 74 20 |n Server|Aim(int |
|00000a80| 4e 65 77 59 61 77 29 0d | 0a 7b 0d 0a 20 20 20 20 |NewYaw).|.{.. |
|00000a90| 43 75 73 74 6f 6d 41 69 | 6d 2e 59 61 77 20 3d 20 |CustomAi|m.Yaw = |
|00000aa0| 4e 65 77 59 61 77 3b 0d | 0a 20 20 20 20 43 75 73 |NewYaw;.|. Cus|
|00000ab0| 74 6f 6d 41 69 6d 2e 50 | 69 74 63 68 20 3d 20 44 |tomAim.P|itch = D|
|00000ac0| 65 66 61 75 6c 74 2e 43 | 75 73 74 6f 6d 41 69 6d |efault.C|ustomAim|
|00000ad0| 2e 50 69 74 63 68 3b 0d | 0a 20 20 20 20 43 75 73 |.Pitch;.|. Cus|
|00000ae0| 74 6f 6d 41 69 6d 2e 52 | 6f 6c 6c 20 3d 20 44 65 |tomAim.R|oll = De|
|00000af0| 66 61 75 6c 74 2e 43 75 | 73 74 6f 6d 41 69 6d 2e |fault.Cu|stomAim.|
|00000b00| 52 6f 6c 6c 3b 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |Roll;..}|....simu|
|00000b10| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 52 |lated fu|nction R|
|00000b20| 61 77 49 6e 70 75 74 28 | 66 6c 6f 61 74 20 44 65 |awInput(|float De|
|00000b30| 6c 74 61 54 69 6d 65 2c | 0d 0a 09 09 09 09 09 09 |ltaTime,|........|
|00000b40| 09 66 6c 6f 61 74 20 61 | 42 61 73 65 58 2c 20 66 |.float a|BaseX, f|
|00000b50| 6c 6f 61 74 20 61 42 61 | 73 65 59 2c 20 66 6c 6f |loat aBa|seY, flo|
|00000b60| 61 74 20 61 42 61 73 65 | 5a 2c 20 66 6c 6f 61 74 |at aBase|Z, float|
|00000b70| 20 61 4d 6f 75 73 65 58 | 2c 20 66 6c 6f 61 74 20 | aMouseX|, float |
|00000b80| 61 4d 6f 75 73 65 59 2c | 0d 0a 09 09 09 09 09 09 |aMouseY,|........|
|00000b90| 09 66 6c 6f 61 74 20 61 | 46 6f 72 77 61 72 64 2c |.float a|Forward,|
|00000ba0| 20 66 6c 6f 61 74 20 61 | 54 75 72 6e 2c 20 66 6c | float a|Turn, fl|
|00000bb0| 6f 61 74 20 61 53 74 72 | 61 66 65 2c 20 66 6c 6f |oat aStr|afe, flo|
|00000bc0| 61 74 20 61 55 70 2c 20 | 66 6c 6f 61 74 20 61 4c |at aUp, |float aL|
|00000bd0| 6f 6f 6b 55 70 29 0d 0a | 7b 0d 0a 09 69 66 20 28 |ookUp)..|{...if (|
|00000be0| 50 6c 61 79 65 72 43 6f | 6e 74 72 6f 6c 6c 65 72 |PlayerCo|ntroller|
|00000bf0| 28 43 6f 6e 74 72 6f 6c | 6c 65 72 29 20 21 3d 20 |(Control|ler) != |
|00000c00| 4e 6f 6e 65 29 0d 0a 09 | 7b 0d 0a 20 20 20 20 20 |None)...|{.. |
|00000c10| 20 20 20 69 66 20 28 61 | 53 74 72 61 66 65 20 3e | if (a|Strafe >|
|00000c20| 20 30 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | 0).. | |
|00000c30| 20 59 61 77 41 63 63 65 | 6c 20 3d 20 31 2e 30 3b | YawAcce|l = 1.0;|
|00000c40| 0d 0a 20 20 20 20 20 20 | 20 20 69 66 20 28 61 53 |.. | if (aS|
|00000c50| 74 72 61 66 65 20 3c 20 | 30 29 0d 0a 20 20 20 20 |trafe < |0).. |
|00000c60| 20 20 20 20 20 20 20 20 | 59 61 77 41 63 63 65 6c | |YawAccel|
|00000c70| 20 3d 20 2d 31 2e 30 3b | 0d 0a 20 20 20 20 20 20 | = -1.0;|.. |
|00000c80| 20 20 69 66 20 28 61 46 | 6f 72 77 61 72 64 20 3e | if (aF|orward >|
|00000c90| 20 30 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | 0).. | |
|00000ca0| 20 50 69 74 63 68 41 63 | 63 65 6c 20 3d 20 31 2e | PitchAc|cel = 1.|
|00000cb0| 30 3b 0d 0a 20 20 20 20 | 20 20 20 20 69 66 20 28 |0;.. | if (|
|00000cc0| 61 46 6f 72 77 61 72 64 | 20 3c 20 30 29 0d 0a 20 |aForward| < 0).. |
|00000cd0| 20 20 20 20 20 20 20 20 | 20 20 20 50 69 74 63 68 | | Pitch|
|00000ce0| 41 63 63 65 6c 20 3d 20 | 2d 31 2e 30 3b 0d 0a 20 |Accel = |-1.0;.. |
|00000cf0| 20 20 20 7d 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 | }..}.|...funct|
|00000d00| 69 6f 6e 20 69 6e 74 20 | 4c 69 6d 69 74 50 69 74 |ion int |LimitPit|
|00000d10| 63 68 28 69 6e 74 20 70 | 69 74 63 68 29 0d 0a 7b |ch(int p|itch)..{|
|00000d20| 0d 0a 09 69 66 20 28 41 | 63 74 69 76 65 57 65 61 |...if (A|ctiveWea|
|00000d30| 70 6f 6e 20 3e 3d 20 57 | 65 61 70 6f 6e 73 2e 6c |pon >= W|eapons.l|
|00000d40| 65 6e 67 74 68 29 0d 0a | 09 09 72 65 74 75 72 6e |ength)..|..return|
|00000d50| 20 53 75 70 65 72 2e 4c | 69 6d 69 74 50 69 74 63 | Super.L|imitPitc|
|00000d60| 68 28 70 69 74 63 68 29 | 3b 0d 0a 0d 0a 09 69 66 |h(pitch)|;.....if|
|00000d70| 20 28 4f 4e 53 41 72 74 | 69 6c 6c 65 72 79 43 61 | (ONSArt|illeryCa|
|00000d80| 6e 6e 6f 6e 28 57 65 61 | 70 6f 6e 73 5b 41 63 74 |nnon(Wea|pons[Act|
|00000d90| 69 76 65 57 65 61 70 6f | 6e 5d 29 20 21 3d 20 4e |iveWeapo|n]) != N|
|00000da0| 6f 6e 65 20 26 26 20 4f | 4e 53 41 72 74 69 6c 6c |one && O|NSArtill|
|00000db0| 65 72 79 43 61 6e 6e 6f | 6e 28 57 65 61 70 6f 6e |eryCanno|n(Weapon|
|00000dc0| 73 5b 41 63 74 69 76 65 | 57 65 61 70 6f 6e 5d 29 |s[Active|Weapon])|
|00000dd0| 2e 4d 6f 72 74 61 72 43 | 61 6d 65 72 61 20 21 3d |.MortarC|amera !=|
|00000de0| 20 4e 6f 6e 65 29 0d 0a | 09 7b 0d 0a 20 20 20 20 | None)..|.{.. |
|00000df0| 09 70 69 74 63 68 20 3d | 20 70 69 74 63 68 20 26 |.pitch =| pitch &|
|00000e00| 20 36 35 35 33 35 3b 0d | 0a 0d 0a 20 20 20 20 20 | 65535;.|... |
|00000e10| 20 20 20 69 66 20 28 70 | 69 74 63 68 20 3e 20 32 | if (p|itch > 2|
|00000e20| 35 30 30 20 26 26 20 70 | 69 74 63 68 20 3c 20 34 |500 && p|itch < 4|
|00000e30| 39 31 35 33 29 0d 0a 20 | 20 20 20 20 20 20 20 7b |9153).. | {|
|00000e40| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 |.. | if|
|00000e50| 20 28 70 69 74 63 68 20 | 2d 20 32 35 30 30 20 3c | (pitch |- 2500 <|
|00000e60| 20 34 39 31 35 33 20 2d | 20 70 69 74 63 68 29 0d | 49153 -| pitch).|
|00000e70| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000e80| 20 70 69 74 63 68 20 3d | 20 32 35 30 30 3b 0d 0a | pitch =| 2500;..|
|00000e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6c 73 65 | | else|
|00000ea0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000eb0| 20 20 70 69 74 63 68 20 | 3d 20 34 39 31 35 33 3b | pitch |= 49153;|
|00000ec0| 0d 0a 20 20 20 20 20 20 | 20 20 7d 0d 0a 20 20 20 |.. | }.. |
|00000ed0| 20 20 20 20 20 72 65 74 | 75 72 6e 20 70 69 74 63 | ret|urn pitc|
|00000ee0| 68 3b 0d 0a 20 20 20 20 | 7d 0d 0a 0d 0a 09 72 65 |h;.. |}.....re|
|00000ef0| 74 75 72 6e 20 57 65 61 | 70 6f 6e 73 5b 41 63 74 |turn Wea|pons[Act|
|00000f00| 69 76 65 57 65 61 70 6f | 6e 5d 2e 4c 69 6d 69 74 |iveWeapo|n].Limit|
|00000f10| 50 69 74 63 68 28 70 69 | 74 63 68 2c 20 52 6f 74 |Pitch(pi|tch, Rot|
|00000f20| 61 74 69 6f 6e 29 3b 0d | 0a 7d 0d 0a 0d 0a 73 69 |ation);.|.}....si|
|00000f30| 6d 75 6c 61 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |mulated |function|
|00000f40| 20 54 69 63 6b 28 66 6c | 6f 61 74 20 44 54 29 0d | Tick(fl|oat DT).|
|00000f50| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 44 65 73 74 72 |.{...loc|al Destr|
|00000f60| 6f 79 61 62 6c 65 4f 62 | 6a 65 63 74 69 76 65 20 |oyableOb|jective |
|00000f70| 4f 62 6a 65 63 74 69 76 | 65 54 61 72 67 65 74 3b |Objectiv|eTarget;|
|00000f80| 0d 0a 0d 0a 09 53 75 70 | 65 72 2e 54 69 63 6b 28 |.....Sup|er.Tick(|
|00000f90| 44 54 29 3b 0d 0a 0d 0a | 09 69 66 20 28 20 41 49 |DT);....|.if ( AI|
|00000fa0| 43 6f 6e 74 72 6f 6c 6c | 65 72 28 43 6f 6e 74 72 |Controll|er(Contr|
|00000fb0| 6f 6c 6c 65 72 29 20 21 | 3d 20 4e 6f 6e 65 20 29 |oller) !|= None )|
|00000fc0| 0d 0a 09 7b 0d 0a 09 09 | 62 43 75 73 74 6f 6d 41 |...{....|bCustomA|
|00000fd0| 69 6d 69 6e 67 20 3d 20 | 74 72 75 65 3b 0d 0a 20 |iming = |true;.. |
|00000fe0| 20 20 20 20 20 20 20 43 | 75 73 74 6f 6d 41 69 6d | C|ustomAim|
|00000ff0| 20 3d 20 57 65 61 70 6f | 6e 73 5b 41 63 74 69 76 | = Weapo|ns[Activ|
|00001000| 65 57 65 61 70 6f 6e 5d | 2e 57 65 61 70 6f 6e 46 |eWeapon]|.WeaponF|
|00001010| 69 72 65 52 6f 74 61 74 | 69 6f 6e 3b 0d 0a 09 09 |ireRotat|ion;....|
|00001020| 69 66 20 28 20 43 6f 6e | 74 72 6f 6c 6c 65 72 2e |if ( Con|troller.|
|00001030| 54 61 72 67 65 74 20 21 | 3d 20 4e 6f 6e 65 20 29 |Target !|= None )|
|00001040| 0d 0a 09 09 09 43 75 73 | 74 6f 6d 41 69 6d 2e 59 |.....Cus|tomAim.Y|
|00001050| 61 77 20 3d 20 52 6f 74 | 61 74 6f 72 28 43 6f 6e |aw = Rot|ator(Con|
|00001060| 74 72 6f 6c 6c 65 72 2e | 54 61 72 67 65 74 2e 4c |troller.|Target.L|
|00001070| 6f 63 61 74 69 6f 6e 20 | 2d 20 4c 6f 63 61 74 69 |ocation |- Locati|
|00001080| 6f 6e 29 2e 59 61 77 3b | 0d 0a 09 09 4c 61 73 74 |on).Yaw;|....Last|
|00001090| 41 69 6d 20 3d 20 43 75 | 73 74 6f 6d 41 69 6d 3b |Aim = Cu|stomAim;|
|000010a0| 0d 0a 09 09 69 66 20 28 | 20 4d 6f 72 74 61 72 43 |....if (| MortarC|
|000010b0| 61 6d 65 72 61 20 21 3d | 20 4e 6f 6e 65 20 29 0d |amera !=| None ).|
|000010c0| 0a 09 09 7b 0d 0a 09 09 | 09 62 41 6c 74 46 6f 63 |...{....|.bAltFoc|
|000010d0| 61 6c 50 6f 69 6e 74 20 | 3d 20 74 72 75 65 3b 0d |alPoint |= true;.|
|000010e0| 0a 09 09 09 69 66 20 28 | 20 43 6f 6e 74 72 6f 6c |....if (| Control|
|000010f0| 6c 65 72 2e 54 61 72 67 | 65 74 20 21 3d 20 4e 6f |ler.Targ|et != No|
|00001100| 6e 65 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |ne )....|.{......|
|00001110| 69 66 20 28 20 4d 6f 72 | 74 61 72 43 61 6d 65 72 |if ( Mor|tarCamer|
|00001120| 61 2e 62 44 65 70 6c 6f | 79 65 64 20 29 0d 0a 09 |a.bDeplo|yed )...|
|00001130| 09 09 09 7b 0d 0a 09 09 | 09 09 09 69 66 20 28 20 |...{....|...if ( |
|00001140| 53 68 6f 6f 74 54 61 72 | 67 65 74 28 43 6f 6e 74 |ShootTar|get(Cont|
|00001150| 72 6f 6c 6c 65 72 2e 54 | 61 72 67 65 74 29 20 21 |roller.T|arget) !|
|00001160| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 09 09 09 09 |= None )|........|
|00001170| 4f 62 6a 65 63 74 69 76 | 65 54 61 72 67 65 74 20 |Objectiv|eTarget |
|00001180| 3d 20 44 65 73 74 72 6f | 79 61 62 6c 65 4f 62 6a |= Destro|yableObj|
|00001190| 65 63 74 69 76 65 28 43 | 6f 6e 74 72 6f 6c 6c 65 |ective(C|ontrolle|
|000011a0| 72 2e 54 61 72 67 65 74 | 2e 4f 77 6e 65 72 29 3b |r.Target|.Owner);|
|000011b0| 0d 0a 09 09 09 09 09 65 | 6c 73 65 0d 0a 09 09 09 |.......e|lse.....|
|000011c0| 09 09 09 4f 62 6a 65 63 | 74 69 76 65 54 61 72 67 |...Objec|tiveTarg|
|000011d0| 65 74 20 3d 20 44 65 73 | 74 72 6f 79 61 62 6c 65 |et = Des|troyable|
|000011e0| 4f 62 6a 65 63 74 69 76 | 65 28 43 6f 6e 74 72 6f |Objectiv|e(Contro|
|000011f0| 6c 6c 65 72 2e 54 61 72 | 67 65 74 29 3b 0d 0a 09 |ller.Tar|get);...|
|00001200| 09 09 09 7d 0d 0a 09 09 | 09 09 69 66 20 28 20 28 |...}....|..if ( (|
|00001210| 4f 62 6a 65 63 74 69 76 | 65 54 61 72 67 65 74 20 |Objectiv|eTarget |
|00001220| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 21 4f 62 6a |!= None)| && !Obj|
|00001230| 65 63 74 69 76 65 54 61 | 72 67 65 74 2e 4c 65 67 |ectiveTa|rget.Leg|
|00001240| 69 74 69 6d 61 74 65 54 | 61 72 67 65 74 4f 66 28 |itimateT|argetOf(|
|00001250| 42 6f 74 28 43 6f 6e 74 | 72 6f 6c 6c 65 72 29 29 |Bot(Cont|roller))|
|00001260| 20 29 0d 0a 09 09 09 09 | 7b 0d 0a 09 09 09 09 09 | )......|{.......|
|00001270| 4d 6f 72 74 61 72 43 61 | 6d 65 72 61 2e 44 65 73 |MortarCa|mera.Des|
|00001280| 74 72 6f 79 28 29 3b 0d | 0a 09 09 09 09 09 4f 4e |troy();.|......ON|
|00001290| 53 41 72 74 69 6c 6c 65 | 72 79 43 61 6e 6e 6f 6e |SArtille|ryCannon|
|000012a0| 28 57 65 61 70 6f 6e 73 | 5b 41 63 74 69 76 65 57 |(Weapons|[ActiveW|
|000012b0| 65 61 70 6f 6e 5d 29 2e | 41 6c 6c 6f 77 43 61 6d |eapon]).|AllowCam|
|000012c0| 65 72 61 4c 61 75 6e 63 | 68 28 29 3b 0d 0a 09 09 |eraLaunc|h();....|
|000012d0| 09 09 09 57 65 61 70 6f | 6e 73 5b 41 63 74 69 76 |...Weapo|ns[Activ|
|000012e0| 65 57 65 61 70 6f 6e 5d | 2e 46 69 72 65 43 6f 75 |eWeapon]|.FireCou|
|000012f0| 6e 74 44 6f 77 6e 20 3d | 20 57 65 61 70 6f 6e 73 |ntDown =| Weapons|
|00001300| 5b 41 63 74 69 76 65 57 | 65 61 70 6f 6e 5d 2e 41 |[ActiveW|eapon].A|
|00001310| 6c 74 46 69 72 65 49 6e | 74 65 72 76 61 6c 3b 0d |ltFireIn|terval;.|
|00001320| 0a 09 09 09 09 7d 0d 0a | 09 09 09 09 65 6c 73 65 |.....}..|....else|
|00001330| 0d 0a 09 09 09 09 7b 0d | 0a 09 09 09 09 09 54 68 |......{.|......Th|
|00001340| 72 6f 74 74 6c 65 20 3d | 20 30 2e 30 3b 0d 0a 09 |rottle =| 0.0;...|
|00001350| 09 09 09 09 53 74 65 65 | 72 69 6e 67 20 3d 20 30 |....Stee|ring = 0|
|00001360| 2e 30 3b 0d 0a 09 09 09 | 09 7d 0d 0a 09 09 09 7d |.0;.....|.}.....}|
|00001370| 0d 0a 09 09 09 65 6c 73 | 65 0d 0a 09 09 09 7b 0d |.....els|e.....{.|
|00001380| 0a 09 09 09 09 62 41 6c | 74 46 6f 63 61 6c 50 6f |.....bAl|tFocalPo|
|00001390| 69 6e 74 20 3d 20 66 61 | 6c 73 65 3b 0d 0a 09 09 |int = fa|lse;....|
|000013a0| 09 09 4d 6f 72 74 61 72 | 43 61 6d 65 72 61 2e 44 |..Mortar|Camera.D|
|000013b0| 65 73 74 72 6f 79 28 29 | 3b 0d 0a 09 09 09 09 4f |estroy()|;......O|
|000013c0| 4e 53 41 72 74 69 6c 6c | 65 72 79 43 61 6e 6e 6f |NSArtill|eryCanno|
|000013d0| 6e 28 57 65 61 70 6f 6e | 73 5b 41 63 74 69 76 65 |n(Weapon|s[Active|
|000013e0| 57 65 61 70 6f 6e 5d 29 | 2e 41 6c 6c 6f 77 43 61 |Weapon])|.AllowCa|
|000013f0| 6d 65 72 61 4c 61 75 6e | 63 68 28 29 3b 0d 0a 09 |meraLaun|ch();...|
|00001400| 09 09 09 57 65 61 70 6f | 6e 73 5b 41 63 74 69 76 |...Weapo|ns[Activ|
|00001410| 65 57 65 61 70 6f 6e 5d | 2e 46 69 72 65 43 6f 75 |eWeapon]|.FireCou|
|00001420| 6e 74 44 6f 77 6e 20 3d | 20 57 65 61 70 6f 6e 73 |ntDown =| Weapons|
|00001430| 5b 41 63 74 69 76 65 57 | 65 61 70 6f 6e 5d 2e 41 |[ActiveW|eapon].A|
|00001440| 6c 74 46 69 72 65 49 6e | 74 65 72 76 61 6c 3b 0d |ltFireIn|terval;.|
|00001450| 0a 09 09 09 7d 0d 0a 09 | 09 7d 0d 0a 09 09 65 6c |....}...|.}....el|
|00001460| 73 65 0d 0a 09 09 09 62 | 41 6c 74 46 6f 63 61 6c |se.....b|AltFocal|
|00001470| 50 6f 69 6e 74 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |Point = |false;..|
|00001480| 09 7d 0d 0a 20 20 20 20 | 65 6c 73 65 20 69 66 20 |.}.. |else if |
|00001490| 28 4d 6f 72 74 61 72 43 | 61 6d 65 72 61 20 21 3d |(MortarC|amera !=|
|000014a0| 20 4e 6f 6e 65 29 0d 0a | 20 20 20 20 7b 0d 0a 09 | None)..| {...|
|000014b0| 20 20 20 20 62 43 75 73 | 74 6f 6d 41 69 6d 69 6e | bCus|tomAimin|
|000014c0| 67 20 3d 20 54 72 75 65 | 3b 0d 0a 0d 0a 20 20 20 |g = True|;.... |
|000014d0| 20 20 20 20 20 43 75 73 | 74 6f 6d 41 69 6d 2e 50 | Cus|tomAim.P|
|000014e0| 69 74 63 68 20 3d 20 44 | 65 66 61 75 6c 74 2e 43 |itch = D|efault.C|
|000014f0| 75 73 74 6f 6d 41 69 6d | 2e 50 69 74 63 68 3b 0d |ustomAim|.Pitch;.|
|00001500| 0a 20 20 20 20 20 20 20 | 20 43 75 73 74 6f 6d 41 |. | CustomA|
|00001510| 69 6d 2e 52 6f 6c 6c 20 | 3d 20 44 65 66 61 75 6c |im.Roll |= Defaul|
|00001520| 74 2e 43 75 73 74 6f 6d | 41 69 6d 2e 52 6f 6c 6c |t.Custom|Aim.Roll|
|00001530| 3b 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 69 66 20 |;.... | if |
|00001540| 28 20 49 73 4c 6f 63 61 | 6c 6c 79 43 6f 6e 74 72 |( IsLoca|llyContr|
|00001550| 6f 6c 6c 65 64 28 29 20 | 26 26 20 49 73 48 75 6d |olled() |&& IsHum|
|00001560| 61 6e 43 6f 6e 74 72 6f | 6c 6c 65 64 28 29 20 29 |anContro|lled() )|
|00001570| 0d 0a 20 20 20 20 20 20 | 20 20 7b 0d 0a 20 20 20 |.. | {.. |
|00001580| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 20 50 6c | | if ( Pl|
|00001590| 61 79 65 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 28 43 |ayerCont|roller(C|
|000015a0| 6f 6e 74 72 6f 6c 6c 65 | 72 29 20 21 3d 20 4e 6f |ontrolle|r) != No|
|000015b0| 6e 65 20 26 26 20 50 6c | 61 79 65 72 43 6f 6e 74 |ne && Pl|ayerCont|
|000015c0| 72 6f 6c 6c 65 72 28 43 | 6f 6e 74 72 6f 6c 6c 65 |roller(C|ontrolle|
|000015d0| 72 29 2e 56 69 65 77 54 | 61 72 67 65 74 20 21 3d |r).ViewT|arget !=|
|000015e0| 20 4d 6f 72 74 61 72 43 | 61 6d 65 72 61 20 29 0d | MortarC|amera ).|
|000015f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001600| 20 50 6c 61 79 65 72 43 | 6f 6e 74 72 6f 6c 6c 65 | PlayerC|ontrolle|
|00001610| 72 28 43 6f 6e 74 72 6f | 6c 6c 65 72 29 2e 53 65 |r(Contro|ller).Se|
|00001620| 74 56 69 65 77 54 61 72 | 67 65 74 28 4d 6f 72 74 |tViewTar|get(Mort|
|00001630| 61 72 43 61 6d 65 72 61 | 29 3b 0d 0a 0d 0a 20 20 |arCamera|);.... |
|00001640| 20 20 20 20 20 20 20 20 | 20 20 43 75 73 74 6f 6d | | Custom|
|00001650| 41 69 6d 2e 59 61 77 20 | 2b 3d 20 59 61 77 41 63 |Aim.Yaw |+= YawAc|
|00001660| 63 65 6c 20 2a 20 38 31 | 39 32 20 2a 20 44 54 3b |cel * 81|92 * DT;|
|00001670| 0d 0a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00001680| 69 66 20 28 57 65 61 70 | 6f 6e 73 5b 41 63 74 69 |if (Weap|ons[Acti|
|00001690| 76 65 57 65 61 70 6f 6e | 5d 20 21 3d 20 4e 6f 6e |veWeapon|] != Non|
|000016a0| 65 20 26 26 20 4f 4e 53 | 41 72 74 69 6c 6c 65 72 |e && ONS|Artiller|
|000016b0| 79 43 61 6e 6e 6f 6e 28 | 57 65 61 70 6f 6e 73 5b |yCannon(|Weapons[|
|000016c0| 41 63 74 69 76 65 57 65 | 61 70 6f 6e 5d 29 20 21 |ActiveWe|apon]) !|
|000016d0| 3d 20 4e 6f 6e 65 29 0d | 0a 20 20 20 20 20 20 20 |= None).|. |
|000016e0| 20 20 20 20 20 20 20 20 | 20 4f 4e 53 41 72 74 69 | | ONSArti|
|000016f0| 6c 6c 65 72 79 43 61 6e | 6e 6f 6e 28 57 65 61 70 |lleryCan|non(Weap|
|00001700| 6f 6e 73 5b 41 63 74 69 | 76 65 57 65 61 70 6f 6e |ons[Acti|veWeapon|
|00001710| 5d 29 2e 53 65 74 57 65 | 61 70 6f 6e 43 68 61 72 |]).SetWe|aponChar|
|00001720| 67 65 28 46 43 6c 61 6d | 70 28 4f 4e 53 41 72 74 |ge(FClam|p(ONSArt|
|00001730| 69 6c 6c 65 72 79 43 61 | 6e 6e 6f 6e 28 57 65 61 |illeryCa|nnon(Wea|
|00001740| 70 6f 6e 73 5b 41 63 74 | 69 76 65 57 65 61 70 6f |pons[Act|iveWeapo|
|00001750| 6e 5d 29 2e 57 65 61 70 | 6f 6e 43 68 61 72 67 65 |n]).Weap|onCharge|
|00001760| 20 2b 20 28 50 69 74 63 | 68 41 63 63 65 6c 20 2a | + (Pitc|hAccel *|
|00001770| 20 44 54 29 2c 20 30 2e | 30 2c 20 30 2e 39 39 39 | DT), 0.|0, 0.999|
|00001780| 29 29 3b 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 20 |));.... | |
|00001790| 20 20 20 69 66 20 28 62 | 43 75 73 74 6f 6d 41 69 | if (b|CustomAi|
|000017a0| 6d 69 6e 67 20 26 26 20 | 62 4a 75 73 74 44 65 70 |ming && |bJustDep|
|000017b0| 6c 6f 79 65 64 20 7c 7c | 20 28 28 4c 65 76 65 6c |loyed ||| ((Level|
|000017c0| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 20 2d 20 43 |.TimeSec|onds - C|
|000017d0| 6c 69 65 6e 74 55 70 64 | 61 74 65 54 69 6d 65 20 |lientUpd|ateTime |
|000017e0| 3e 20 30 2e 30 32 32 32 | 29 20 26 26 20 43 75 73 |> 0.0222|) && Cus|
|000017f0| 74 6f 6d 41 69 6d 20 21 | 3d 20 4c 61 73 74 41 69 |tomAim !|= LastAi|
|00001800| 6d 29 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |m)).. | |
|00001810| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00001820| 20 20 20 20 43 6c 69 65 | 6e 74 55 70 64 61 74 65 | Clie|ntUpdate|
|00001830| 54 69 6d 65 20 3d 20 4c | 65 76 65 6c 2e 54 69 6d |Time = L|evel.Tim|
|00001840| 65 53 65 63 6f 6e 64 73 | 3b 0d 0a 20 20 20 20 20 |eSeconds|;.. |
|00001850| 20 20 20 20 20 20 20 20 | 20 20 20 53 65 72 76 65 | | Serve|
|00001860| 72 41 69 6d 28 43 75 73 | 74 6f 6d 41 69 6d 2e 59 |rAim(Cus|tomAim.Y|
|00001870| 61 77 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |aw);.. | |
|00001880| 20 20 20 20 20 20 4c 61 | 73 74 41 69 6d 20 3d 20 | La|stAim = |
|00001890| 43 75 73 74 6f 6d 41 69 | 6d 3b 0d 0a 20 20 20 20 |CustomAi|m;.. |
|000018a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 4a 75 73 | | bJus|
|000018b0| 74 44 65 70 6c 6f 79 65 | 64 20 3d 20 66 61 6c 73 |tDeploye|d = fals|
|000018c0| 65 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e;.. | |
|000018d0| 7d 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |}.... | |
|000018e0| 20 59 61 77 41 63 63 65 | 6c 20 3d 20 30 2e 30 3b | YawAcce|l = 0.0;|
|000018f0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 50 69 |.. | Pi|
|00001900| 74 63 68 41 63 63 65 6c | 20 3d 20 30 2e 30 3b 0d |tchAccel| = 0.0;.|
|00001910| 0a 20 20 20 20 20 20 20 | 20 7d 0d 0a 0d 0a 20 20 |. | }.... |
|00001920| 20 20 20 20 20 20 54 68 | 72 6f 74 74 6c 65 20 3d | Th|rottle =|
|00001930| 20 30 2e 30 3b 0d 0a 20 | 20 20 20 20 20 20 20 53 | 0.0;.. | S|
|00001940| 74 65 65 72 69 6e 67 20 | 3d 20 30 2e 30 3b 0d 0a |teering |= 0.0;..|
|00001950| 20 20 20 20 7d 0d 0a 20 | 20 20 20 65 6c 73 65 0d | }.. | else.|
|00001960| 0a 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 |. {..| |
|00001970| 62 43 75 73 74 6f 6d 41 | 69 6d 69 6e 67 20 3d 20 |bCustomA|iming = |
|00001980| 46 61 6c 73 65 3b 0d 0a | 20 20 20 20 20 20 20 20 |False;..| |
|00001990| 69 66 20 28 49 73 4c 6f | 63 61 6c 6c 79 43 6f 6e |if (IsLo|callyCon|
|000019a0| 74 72 6f 6c 6c 65 64 28 | 29 20 26 26 20 57 65 61 |trolled(|) && Wea|
|000019b0| 70 6f 6e 73 5b 41 63 74 | 69 76 65 57 65 61 70 6f |pons[Act|iveWeapo|
|000019c0| 6e 5d 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 20 20 20 |n] != No|ne).. |
|000019d0| 20 20 20 20 20 20 20 20 | 20 43 75 73 74 6f 6d 41 | | CustomA|
|000019e0| 69 6d 20 3d 20 57 65 61 | 70 6f 6e 73 5b 41 63 74 |im = Wea|pons[Act|
|000019f0| 69 76 65 57 65 61 70 6f | 6e 5d 2e 57 65 61 70 6f |iveWeapo|n].Weapo|
|00001a00| 6e 46 69 72 65 52 6f 74 | 61 74 69 6f 6e 3b 0d 0a |nFireRot|ation;..|
|00001a10| 20 20 20 20 7d 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 | }..}|....simu|
|00001a20| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 50 |lated fu|nction P|
|00001a30| 72 65 76 57 65 61 70 6f | 6e 28 29 0d 0a 7b 0d 0a |revWeapo|n()..{..|
|00001a40| 20 20 20 20 69 66 20 28 | 4d 6f 72 74 61 72 43 61 | if (|MortarCa|
|00001a50| 6d 65 72 61 20 21 3d 20 | 4e 6f 6e 65 20 26 26 20 |mera != |None && |
|00001a60| 57 65 61 70 6f 6e 73 5b | 41 63 74 69 76 65 57 65 |Weapons[|ActiveWe|
|00001a70| 61 70 6f 6e 5d 20 21 3d | 20 4e 6f 6e 65 20 26 26 |apon] !=| None &&|
|00001a80| 20 4f 4e 53 41 72 74 69 | 6c 6c 65 72 79 43 61 6e | ONSArti|lleryCan|
|00001a90| 6e 6f 6e 28 57 65 61 70 | 6f 6e 73 5b 41 63 74 69 |non(Weap|ons[Acti|
|00001aa0| 76 65 57 65 61 70 6f 6e | 5d 29 20 21 3d 20 4e 6f |veWeapon|]) != No|
|00001ab0| 6e 65 29 0d 0a 20 20 20 | 20 20 20 20 20 4f 4e 53 |ne).. | ONS|
|00001ac0| 41 72 74 69 6c 6c 65 72 | 79 43 61 6e 6e 6f 6e 28 |Artiller|yCannon(|
|00001ad0| 57 65 61 70 6f 6e 73 5b | 41 63 74 69 76 65 57 65 |Weapons[|ActiveWe|
|00001ae0| 61 70 6f 6e 5d 29 2e 53 | 65 74 57 65 61 70 6f 6e |apon]).S|etWeapon|
|00001af0| 43 68 61 72 67 65 28 46 | 4d 69 6e 28 4f 4e 53 41 |Charge(F|Min(ONSA|
|00001b00| 72 74 69 6c 6c 65 72 79 | 43 61 6e 6e 6f 6e 28 57 |rtillery|Cannon(W|
|00001b10| 65 61 70 6f 6e 73 5b 41 | 63 74 69 76 65 57 65 61 |eapons[A|ctiveWea|
|00001b20| 70 6f 6e 5d 29 2e 57 65 | 61 70 6f 6e 43 68 61 72 |pon]).We|aponChar|
|00001b30| 67 65 20 2b 20 30 2e 30 | 32 35 2c 20 30 2e 39 39 |ge + 0.0|25, 0.99|
|00001b40| 39 29 29 3b 0d 0a 20 20 | 20 20 65 6c 73 65 0d 0a |9));.. | else..|
|00001b50| 20 20 20 20 20 20 20 20 | 53 75 70 65 72 2e 50 72 | |Super.Pr|
|00001b60| 65 76 57 65 61 70 6f 6e | 28 29 3b 0d 0a 7d 0d 0a |evWeapon|();..}..|
|00001b70| 0d 0a 73 69 6d 75 6c 61 | 74 65 64 20 66 75 6e 63 |..simula|ted func|
|00001b80| 74 69 6f 6e 20 4e 65 78 | 74 57 65 61 70 6f 6e 28 |tion Nex|tWeapon(|
|00001b90| 29 0d 0a 7b 0d 0a 20 20 | 20 20 69 66 20 28 4d 6f |)..{.. | if (Mo|
|00001ba0| 72 74 61 72 43 61 6d 65 | 72 61 20 21 3d 20 4e 6f |rtarCame|ra != No|
|00001bb0| 6e 65 20 26 26 20 57 65 | 61 70 6f 6e 73 5b 41 63 |ne && We|apons[Ac|
|00001bc0| 74 69 76 65 57 65 61 70 | 6f 6e 5d 20 21 3d 20 4e |tiveWeap|on] != N|
|00001bd0| 6f 6e 65 20 26 26 20 4f | 4e 53 41 72 74 69 6c 6c |one && O|NSArtill|
|00001be0| 65 72 79 43 61 6e 6e 6f | 6e 28 57 65 61 70 6f 6e |eryCanno|n(Weapon|
|00001bf0| 73 5b 41 63 74 69 76 65 | 57 65 61 70 6f 6e 5d 29 |s[Active|Weapon])|
|00001c00| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 20 20 20 20 20 | != None|).. |
|00001c10| 20 20 20 4f 4e 53 41 72 | 74 69 6c 6c 65 72 79 43 | ONSAr|tilleryC|
|00001c20| 61 6e 6e 6f 6e 28 57 65 | 61 70 6f 6e 73 5b 41 63 |annon(We|apons[Ac|
|00001c30| 74 69 76 65 57 65 61 70 | 6f 6e 5d 29 2e 53 65 74 |tiveWeap|on]).Set|
|00001c40| 57 65 61 70 6f 6e 43 68 | 61 72 67 65 28 46 4d 61 |WeaponCh|arge(FMa|
|00001c50| 78 28 4f 4e 53 41 72 74 | 69 6c 6c 65 72 79 43 61 |x(ONSArt|illeryCa|
|00001c60| 6e 6e 6f 6e 28 57 65 61 | 70 6f 6e 73 5b 41 63 74 |nnon(Wea|pons[Act|
|00001c70| 69 76 65 57 65 61 70 6f | 6e 5d 29 2e 57 65 61 70 |iveWeapo|n]).Weap|
|00001c80| 6f 6e 43 68 61 72 67 65 | 20 2d 20 30 2e 30 32 35 |onCharge| - 0.025|
|00001c90| 2c 20 30 2e 30 29 29 3b | 0d 0a 20 20 20 20 65 6c |, 0.0));|.. el|
|00001ca0| 73 65 0d 0a 20 20 20 20 | 20 20 20 20 53 75 70 65 |se.. | Supe|
|00001cb0| 72 2e 4e 65 78 74 57 65 | 61 70 6f 6e 28 29 3b 0d |r.NextWe|apon();.|
|00001cc0| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00001cd0| 66 75 6e 63 74 69 6f 6e | 20 61 63 74 6f 72 20 41 |function| actor A|
|00001ce0| 6c 74 65 72 6e 61 74 65 | 54 61 72 67 65 74 28 29 |lternate|Target()|
|00001cf0| 0d 0a 7b 0d 0a 20 20 20 | 20 72 65 74 75 72 6e 20 |..{.. | return |
|00001d00| 4d 6f 72 74 61 72 43 61 | 6d 65 72 61 3b 0d 0a 7d |MortarCa|mera;..}|
|00001d10| 0d 0a 0d 0a 65 76 65 6e | 74 20 62 6f 6f 6c 20 56 |....even|t bool V|
|00001d20| 65 72 69 66 79 4c 6f 63 | 6b 28 61 63 74 6f 72 20 |erifyLoc|k(actor |
|00001d30| 41 67 67 72 65 73 73 6f | 72 2c 20 6f 75 74 20 61 |Aggresso|r, out a|
|00001d40| 63 74 6f 72 20 4e 65 77 | 54 61 72 67 65 74 29 0d |ctor New|Target).|
|00001d50| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 09 63 6c 61 73 73 |.{...loc|al.class|
|00001d60| 3c 4c 6f 63 61 6c 4d 65 | 73 73 61 67 65 3e 09 4c |<LocalMe|ssage>.L|
|00001d70| 6f 63 6b 4f 6e 43 6c 61 | 73 73 3b 0d 0a 0d 0a 09 |ockOnCla|ss;.....|
|00001d80| 69 66 20 28 4d 6f 72 74 | 61 72 43 61 6d 65 72 61 |if (Mort|arCamera|
|00001d90| 20 21 3d 20 4e 6f 6e 65 | 20 26 26 20 21 46 61 73 | != None| && !Fas|
|00001da0| 74 54 72 61 63 65 28 4c | 6f 63 61 74 69 6f 6e 2c |tTrace(L|ocation,|
|00001db0| 20 41 67 67 72 65 73 73 | 6f 72 2e 4c 6f 63 61 74 | Aggress|or.Locat|
|00001dc0| 69 6f 6e 29 29 0d 0a 09 | 7b 0d 0a 20 20 20 20 20 |ion))...|{.. |
|00001dd0| 20 20 20 4e 65 77 54 61 | 72 67 65 74 20 3d 20 4d | NewTa|rget = M|
|00001de0| 6f 72 74 61 72 43 61 6d | 65 72 61 3b 0d 0a 20 20 |ortarCam|era;.. |
|00001df0| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 46 61 6c | re|turn Fal|
|00001e00| 73 65 3b 0d 0a 20 20 20 | 20 7d 0d 0a 0d 0a 09 2f |se;.. | }...../|
|00001e10| 2f 20 4c 6f 63 6b 20 68 | 61 73 20 73 77 69 74 63 |/ Lock h|as switc|
|00001e20| 68 65 64 20 66 72 6f 6d | 20 74 68 65 20 43 61 6d |hed from| the Cam|
|00001e30| 65 72 61 20 74 6f 20 74 | 68 65 20 53 50 4d 41 2c |era to t|he SPMA,|
|00001e40| 20 6e 6f 74 69 66 79 20 | 74 68 65 20 41 76 72 69 | notify |the Avri|
|00001e50| 6c 20 43 6f 6e 74 72 6f | 6c 6c 65 72 0d 0a 0d 0a |l Contro|ller....|
|00001e60| 09 69 66 20 28 41 67 67 | 72 65 73 73 6f 72 2e 49 |.if (Agg|ressor.I|
|00001e70| 6e 73 74 69 67 61 74 6f | 72 21 3d 4e 6f 6e 65 20 |nstigato|r!=None |
|00001e80| 26 26 20 41 67 67 72 65 | 73 73 6f 72 2e 49 6e 73 |&& Aggre|ssor.Ins|
|00001e90| 74 69 67 61 74 6f 72 2e | 43 6f 6e 74 72 6f 6c 6c |tigator.|Controll|
|00001ea0| 65 72 20 21 3d 4e 6f 6e | 65 20 26 26 0d 0a 09 09 |er !=Non|e &&....|
|00001eb0| 09 50 6c 61 79 65 72 43 | 6f 6e 74 72 6f 6c 6c 65 |.PlayerC|ontrolle|
|00001ec0| 72 28 41 67 67 72 65 73 | 73 6f 72 2e 49 6e 73 74 |r(Aggres|sor.Inst|
|00001ed0| 69 67 61 74 6f 72 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |igator.C|ontrolle|
|00001ee0| 72 29 20 21 3d 20 6e 6f | 6e 65 29 0d 0a 09 7b 0d |r) != no|ne)...{.|
|00001ef0| 0a 09 20 09 69 66 20 28 | 4c 65 76 65 6c 2e 54 69 |.. .if (|Level.Ti|
|00001f00| 6d 65 53 65 63 6f 6e 64 | 73 20 3e 20 4c 61 73 74 |meSecond|s > Last|
|00001f10| 4c 6f 63 61 6c 4d 73 67 | 54 69 6d 65 20 2b 20 4c |LocalMsg|Time + L|
|00001f20| 6f 63 6b 57 61 72 6e 69 | 6e 67 49 6e 74 65 72 76 |ockWarni|ngInterv|
|00001f30| 61 6c 29 0d 0a 09 20 09 | 7b 0d 0a 09 09 09 4c 6f |al)... .|{.....Lo|
|00001f40| 63 6b 4f 6e 43 6c 61 73 | 73 20 3d 20 63 6c 61 73 |ckOnClas|s = clas|
|00001f50| 73 3c 4c 6f 63 61 6c 4d | 65 73 73 61 67 65 3e 28 |s<LocalM|essage>(|
|00001f60| 44 79 6e 61 6d 69 63 4c | 6f 61 64 4f 62 6a 65 63 |DynamicL|oadObjec|
|00001f70| 74 28 41 72 74 69 4c 6f | 63 6b 4f 6e 43 6c 61 73 |t(ArtiLo|ckOnClas|
|00001f80| 73 53 74 72 69 6e 67 2c | 20 63 6c 61 73 73 27 63 |sString,| class'c|
|00001f90| 6c 61 73 73 27 29 29 3b | 0d 0a 09 09 09 50 6c 61 |lass'));|.....Pla|
|00001fa0| 79 65 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 28 41 67 |yerContr|oller(Ag|
|00001fb0| 67 72 65 73 73 6f 72 2e | 49 6e 73 74 69 67 61 74 |gressor.|Instigat|
|00001fc0| 6f 72 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 29 2e 52 |or.Contr|oller).R|
|00001fd0| 65 63 65 69 76 65 4c 6f | 63 61 6c 69 7a 65 64 4d |eceiveLo|calizedM|
|00001fe0| 65 73 73 61 67 65 28 4c | 6f 63 6b 4f 6e 43 6c 61 |essage(L|ockOnCla|
|00001ff0| 73 73 2c 20 33 32 29 3b | 0d 0a 09 09 7d 0d 0a 09 |ss, 32);|....}...|
|00002000| 7d 0d 0a 0d 0a 20 20 20 | 20 72 65 74 75 72 6e 20 |}.... | return |
|00002010| 54 72 75 65 3b 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |True;..}|....simu|
|00002020| 6c 61 74 65 64 20 65 76 | 65 6e 74 20 44 65 73 74 |lated ev|ent Dest|
|00002030| 72 6f 79 65 64 28 29 0d | 0a 7b 0d 0a 20 20 20 20 |royed().|.{.. |
|00002040| 69 66 20 28 4d 6f 72 74 | 61 72 43 61 6d 65 72 61 |if (Mort|arCamera|
|00002050| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 20 20 20 20 20 | != None|).. |
|00002060| 20 20 20 4d 6f 72 74 61 | 72 43 61 6d 65 72 61 2e | Morta|rCamera.|
|00002070| 54 61 6b 65 44 61 6d 61 | 67 65 28 31 2c 20 4e 6f |TakeDama|ge(1, No|
|00002080| 6e 65 2c 20 76 65 63 74 | 28 30 2c 30 2c 30 29 2c |ne, vect|(0,0,0),|
|00002090| 20 76 65 63 74 28 30 2c | 30 2c 30 29 2c 20 63 6c | vect(0,|0,0), cl|
|000020a0| 61 73 73 27 44 61 6d 61 | 67 65 54 79 70 65 27 29 |ass'Dama|geType')|
|000020b0| 3b 0d 0a 0d 0a 20 20 20 | 20 53 75 70 65 72 2e 44 |;.... | Super.D|
|000020c0| 65 73 74 72 6f 79 65 64 | 28 29 3b 0d 0a 7d 0d 0a |estroyed|();..}..|
|000020d0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 44 72 69 76 65 |..functi|on Drive|
|000020e0| 72 4c 65 66 74 28 29 0d | 0a 7b 0d 0a 20 20 20 20 |rLeft().|.{.. |
|000020f0| 69 66 20 28 4d 6f 72 74 | 61 72 43 61 6d 65 72 61 |if (Mort|arCamera|
|00002100| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 20 20 20 20 20 | != None|).. |
|00002110| 20 20 20 4d 6f 72 74 61 | 72 43 61 6d 65 72 61 2e | Morta|rCamera.|
|00002120| 54 61 6b 65 44 61 6d 61 | 67 65 28 31 2c 20 4e 6f |TakeDama|ge(1, No|
|00002130| 6e 65 2c 20 76 65 63 74 | 28 30 2c 30 2c 30 29 2c |ne, vect|(0,0,0),|
|00002140| 20 76 65 63 74 28 30 2c | 30 2c 30 29 2c 20 63 6c | vect(0,|0,0), cl|
|00002150| 61 73 73 27 44 61 6d 61 | 67 65 54 79 70 65 27 29 |ass'Dama|geType')|
|00002160| 3b 0d 0a 0d 0a 20 20 20 | 20 53 75 70 65 72 2e 44 |;.... | Super.D|
|00002170| 72 69 76 65 72 4c 65 66 | 74 28 29 3b 0d 0a 7d 0d |riverLef|t();..}.|
|00002180| 0a 0d 0a 65 76 65 6e 74 | 20 41 70 70 6c 79 46 69 |...event| ApplyFi|
|00002190| 72 65 49 6d 70 75 6c 73 | 65 28 62 6f 6f 6c 20 62 |reImpuls|e(bool b|
|000021a0| 41 6c 74 29 0d 0a 7b 0d | 0a 09 69 66 20 28 20 41 |Alt)..{.|..if ( A|
|000021b0| 49 43 6f 6e 74 72 6f 6c | 6c 65 72 28 49 6e 73 74 |IControl|ler(Inst|
|000021c0| 69 67 61 74 6f 72 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |igator.C|ontrolle|
|000021d0| 72 29 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 7b |r) != No|ne )...{|
|000021e0| 0d 0a 09 09 69 66 20 28 | 20 43 6f 6e 74 72 6f 6c |....if (| Control|
|000021f0| 6c 65 72 2e 54 61 72 67 | 65 74 20 21 3d 20 4e 6f |ler.Targ|et != No|
|00002200| 6e 65 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 57 65 |ne )....|{.....We|
|00002210| 61 70 6f 6e 73 5b 41 63 | 74 69 76 65 57 65 61 70 |apons[Ac|tiveWeap|
|00002220| 6f 6e 5d 2e 43 61 6c 63 | 57 65 61 70 6f 6e 46 69 |on].Calc|WeaponFi|
|00002230| 72 65 28 29 3b 0d 0a 09 | 09 09 57 65 61 70 6f 6e |re();...|..Weapon|
|00002240| 73 5b 41 63 74 69 76 65 | 57 65 61 70 6f 6e 5d 2e |s[Active|Weapon].|
|00002250| 57 65 61 70 6f 6e 46 69 | 72 65 52 6f 74 61 74 69 |WeaponFi|reRotati|
|00002260| 6f 6e 20 3d 20 52 6f 74 | 61 74 6f 72 28 43 6f 6e |on = Rot|ator(Con|
|00002270| 74 72 6f 6c 6c 65 72 2e | 54 61 72 67 65 74 2e 4c |troller.|Target.L|
|00002280| 6f 63 61 74 69 6f 6e 20 | 2d 20 57 65 61 70 6f 6e |ocation |- Weapon|
|00002290| 73 5b 41 63 74 69 76 65 | 57 65 61 70 6f 6e 5d 2e |s[Active|Weapon].|
|000022a0| 57 65 61 70 6f 6e 46 69 | 72 65 4c 6f 63 61 74 69 |WeaponFi|reLocati|
|000022b0| 6f 6e 29 3b 0d 0a 09 09 | 09 57 65 61 70 6f 6e 73 |on);....|.Weapons|
|000022c0| 5b 41 63 74 69 76 65 57 | 65 61 70 6f 6e 5d 2e 57 |[ActiveW|eapon].W|
|000022d0| 65 61 70 6f 6e 46 69 72 | 65 52 6f 74 61 74 69 6f |eaponFir|eRotatio|
|000022e0| 6e 2e 50 69 74 63 68 20 | 3d 20 31 30 30 30 30 3b |n.Pitch |= 10000;|
|000022f0| 0d 0a 09 09 09 57 65 61 | 70 6f 6e 73 5b 41 63 74 |.....Wea|pons[Act|
|00002300| 69 76 65 57 65 61 70 6f | 6e 5d 2e 57 65 61 70 6f |iveWeapo|n].Weapo|
|00002310| 6e 46 69 72 65 4c 6f 63 | 61 74 69 6f 6e 2e 5a 20 |nFireLoc|ation.Z |
|00002320| 3d 20 4c 6f 63 61 74 69 | 6f 6e 2e 5a 20 2b 20 35 |= Locati|on.Z + 5|
|00002330| 30 30 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 09 53 |00;....}|...}...S|
|00002340| 75 70 65 72 2e 41 70 70 | 6c 79 46 69 72 65 49 6d |uper.App|lyFireIm|
|00002350| 70 75 6c 73 65 28 62 41 | 6c 74 29 3b 0d 0a 7d 0d |pulse(bA|lt);..}.|
|00002360| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |...funct|ion bool|
|00002370| 20 52 65 63 6f 6d 6d 65 | 6e 64 4c 6f 6e 67 52 61 | Recomme|ndLongRa|
|00002380| 6e 67 65 64 41 74 74 61 | 63 6b 28 29 0d 0a 7b 0d |ngedAtta|ck()..{.|
|00002390| 0a 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|000023a0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 53 68 |}....fun|ction Sh|
|000023b0| 6f 75 6c 64 54 61 72 67 | 65 74 4d 69 73 73 69 6c |ouldTarg|etMissil|
|000023c0| 65 28 50 72 6f 6a 65 63 | 74 69 6c 65 20 50 29 0d |e(Projec|tile P).|
|000023d0| 0a 7b 0d 0a 7d 0d 0a 0d | 0a 73 74 61 74 69 63 20 |.{..}...|.static |
|000023e0| 66 75 6e 63 74 69 6f 6e | 20 53 74 61 74 69 63 50 |function| StaticP|
|000023f0| 72 65 63 61 63 68 65 28 | 4c 65 76 65 6c 49 6e 66 |recache(|LevelInf|
|00002400| 6f 20 4c 29 0d 0a 7b 0d | 0a 20 20 20 20 53 75 70 |o L)..{.|. Sup|
|00002410| 65 72 2e 53 74 61 74 69 | 63 50 72 65 63 61 63 68 |er.Stati|cPrecach|
|00002420| 65 28 4c 29 3b 0d 0a 0d | 0a 09 4c 2e 41 64 64 50 |e(L);...|..L.AddP|
|00002430| 72 65 63 61 63 68 65 53 | 74 61 74 69 63 4d 65 73 |recacheS|taticMes|
|00002440| 68 28 53 74 61 74 69 63 | 4d 65 73 68 27 4f 4e 53 |h(Static|Mesh'ONS|
|00002450| 2d 42 50 4a 57 31 2e 4d | 65 73 68 65 73 2e 4c 61 |-BPJW1.M|eshes.La|
|00002460| 72 67 65 53 68 65 6c 6c | 27 29 3b 0d 0a 09 4c 2e |rgeShell|');...L.|
|00002470| 41 64 64 50 72 65 63 61 | 63 68 65 53 74 61 74 69 |AddPreca|cheStati|
|00002480| 63 4d 65 73 68 28 53 74 | 61 74 69 63 4d 65 73 68 |cMesh(St|aticMesh|
|00002490| 27 4f 4e 53 2d 42 50 4a | 57 31 2e 4d 65 73 68 65 |'ONS-BPJ|W1.Meshe|
|000024a0| 73 2e 54 61 72 67 65 74 | 27 29 3b 0d 0a 09 4c 2e |s.Target|');...L.|
|000024b0| 41 64 64 50 72 65 63 61 | 63 68 65 53 74 61 74 69 |AddPreca|cheStati|
|000024c0| 63 4d 65 73 68 28 53 74 | 61 74 69 63 4d 65 73 68 |cMesh(St|aticMesh|
|000024d0| 27 4f 4e 53 2d 42 50 4a | 57 31 2e 4d 65 73 68 65 |'ONS-BPJ|W1.Meshe|
|000024e0| 73 2e 4d 69 6e 69 5f 53 | 68 65 6c 6c 27 29 3b 0d |s.Mini_S|hell');.|
|000024f0| 0a 09 4c 2e 41 64 64 50 | 72 65 63 61 63 68 65 53 |..L.AddP|recacheS|
|00002500| 74 61 74 69 63 4d 65 73 | 68 28 53 74 61 74 69 63 |taticMes|h(Static|
|00002510| 4d 65 73 68 27 4f 4e 53 | 2d 42 50 4a 57 31 2e 4d |Mesh'ONS|-BPJW1.M|
|00002520| 65 73 68 65 73 2e 54 61 | 72 67 65 74 4e 6f 27 29 |eshes.Ta|rgetNo')|
|00002530| 3b 0d 0a 0d 0a 20 20 20 | 20 4c 2e 41 64 64 50 72 |;.... | L.AddPr|
|00002540| 65 63 61 63 68 65 4d 61 | 74 65 72 69 61 6c 28 4d |ecacheMa|terial(M|
|00002550| 61 74 65 72 69 61 6c 27 | 4f 4e 53 42 50 54 65 78 |aterial'|ONSBPTex|
|00002560| 74 75 72 65 73 2e 53 6b | 69 6e 73 2e 53 50 4d 41 |tures.Sk|ins.SPMA|
|00002570| 47 72 65 65 6e 27 29 3b | 0d 0a 20 20 20 20 4c 2e |Green');|.. L.|
|00002580| 41 64 64 50 72 65 63 61 | 63 68 65 4d 61 74 65 72 |AddPreca|cheMater|
|00002590| 69 61 6c 28 4d 61 74 65 | 72 69 61 6c 27 41 57 2d |ial(Mate|rial'AW-|
|000025a0| 32 30 30 34 50 61 72 74 | 69 63 6c 65 73 2e 57 65 |2004Part|icles.We|
|000025b0| 61 70 6f 6e 73 2e 4d 75 | 7a 7a 6c 65 53 70 72 61 |apons.Mu|zzleSpra|
|000025c0| 79 27 29 3b 0d 0a 20 20 | 20 20 4c 2e 41 64 64 50 |y');.. | L.AddP|
|000025d0| 72 65 63 61 63 68 65 4d | 61 74 65 72 69 61 6c 28 |recacheM|aterial(|
|000025e0| 4d 61 74 65 72 69 61 6c | 27 4f 4e 53 42 50 54 65 |Material|'ONSBPTe|
|000025f0| 78 74 75 72 65 73 2e 53 | 6b 69 6e 73 2e 53 50 4d |xtures.S|kins.SPM|
|00002600| 41 54 61 6e 27 29 3b 0d | 0a 20 20 20 20 4c 2e 41 |ATan');.|. L.A|
|00002610| 64 64 50 72 65 63 61 63 | 68 65 4d 61 74 65 72 69 |ddPrecac|heMateri|
|00002620| 61 6c 28 4d 61 74 65 72 | 69 61 6c 27 41 57 2d 32 |al(Mater|ial'AW-2|
|00002630| 30 30 34 50 61 72 74 69 | 63 6c 65 73 2e 46 69 72 |004Parti|cles.Fir|
|00002640| 65 2e 4e 61 70 61 6c 6d | 53 70 6f 74 27 29 3b 0d |e.Napalm|Spot');.|
|00002650| 0a 20 20 20 20 4c 2e 41 | 64 64 50 72 65 63 61 63 |. L.A|ddPrecac|
|00002660| 68 65 4d 61 74 65 72 69 | 61 6c 28 4d 61 74 65 72 |heMateri|al(Mater|
|00002670| 69 61 6c 27 41 57 2d 32 | 30 30 34 50 61 72 74 69 |ial'AW-2|004Parti|
|00002680| 63 6c 65 73 2e 46 69 72 | 65 2e 53 6d 6f 6b 65 46 |cles.Fir|e.SmokeF|
|00002690| 72 61 67 6d 65 6e 74 27 | 29 3b 0d 0a 20 20 20 20 |ragment'|);.. |
|000026a0| 4c 2e 41 64 64 50 72 65 | 63 61 63 68 65 4d 61 74 |L.AddPre|cacheMat|
|000026b0| 65 72 69 61 6c 28 4d 61 | 74 65 72 69 61 6c 27 4f |erial(Ma|terial'O|
|000026c0| 4e 53 42 50 54 65 78 74 | 75 72 65 73 2e 66 58 2e |NSBPText|ures.fX.|
|000026d0| 4d 69 73 73 69 6c 65 27 | 29 3b 0d 0a 20 20 20 20 |Missile'|);.. |
|000026e0| 4c 2e 41 64 64 50 72 65 | 63 61 63 68 65 4d 61 74 |L.AddPre|cacheMat|
|000026f0| 65 72 69 61 6c 28 4d 61 | 74 65 72 69 61 6c 27 4f |erial(Ma|terial'O|
|00002700| 4e 53 42 50 54 65 78 74 | 75 72 65 73 2e 53 6d 6f |NSBPText|ures.Smo|
|00002710| 6b 65 27 29 3b 0d 0a 20 | 20 20 20 4c 2e 41 64 64 |ke');.. | L.Add|
|00002720| 50 72 65 63 61 63 68 65 | 4d 61 74 65 72 69 61 6c |Precache|Material|
|00002730| 28 4d 61 74 65 72 69 61 | 6c 27 4f 4e 53 42 50 54 |(Materia|l'ONSBPT|
|00002740| 65 78 74 75 72 65 73 2e | 66 58 2e 45 78 70 6c 6f |extures.|fX.Explo|
|00002750| 54 72 61 6e 73 27 29 3b | 0d 0a 20 20 20 20 4c 2e |Trans');|.. L.|
|00002760| 41 64 64 50 72 65 63 61 | 63 68 65 4d 61 74 65 72 |AddPreca|cheMater|
|00002770| 69 61 6c 28 4d 61 74 65 | 72 69 61 6c 27 4f 4e 53 |ial(Mate|rial'ONS|
|00002780| 42 50 54 65 78 74 75 72 | 65 73 2e 66 58 2e 46 6c |BPTextur|es.fX.Fl|
|00002790| 61 69 72 31 27 29 3b 0d | 0a 20 20 20 20 4c 2e 41 |air1');.|. L.A|
|000027a0| 64 64 50 72 65 63 61 63 | 68 65 4d 61 74 65 72 69 |ddPrecac|heMateri|
|000027b0| 61 6c 28 4d 61 74 65 72 | 69 61 6c 27 4f 4e 53 42 |al(Mater|ial'ONSB|
|000027c0| 50 54 65 78 74 75 72 65 | 73 2e 66 58 2e 46 6c 61 |PTexture|s.fX.Fla|
|000027d0| 69 72 31 41 6c 70 68 61 | 27 29 3b 0d 0a 20 20 20 |ir1Alpha|');.. |
|000027e0| 20 4c 2e 41 64 64 50 72 | 65 63 61 63 68 65 4d 61 | L.AddPr|ecacheMa|
|000027f0| 74 65 72 69 61 6c 28 4d | 61 74 65 72 69 61 6c 27 |terial(M|aterial'|
|00002800| 4f 4e 53 42 50 54 65 78 | 74 75 72 65 73 2e 66 58 |ONSBPTex|tures.fX|
|00002810| 2e 73 65 65 78 70 74 27 | 29 3b 0d 0a 20 20 20 20 |.seexpt'|);.. |
|00002820| 4c 2e 41 64 64 50 72 65 | 63 61 63 68 65 4d 61 74 |L.AddPre|cacheMat|
|00002830| 65 72 69 61 6c 28 4d 61 | 74 65 72 69 61 6c 27 4f |erial(Ma|terial'O|
|00002840| 4e 53 42 50 54 65 78 74 | 75 72 65 73 2e 53 6b 69 |NSBPText|ures.Ski|
|00002850| 6e 73 2e 41 72 74 69 6c | 6c 65 72 79 43 61 6d 54 |ns.Artil|leryCamT|
|00002860| 65 78 74 75 72 65 27 29 | 3b 0d 0a 20 20 20 20 4c |exture')|;.. L|
|00002870| 2e 41 64 64 50 72 65 63 | 61 63 68 65 4d 61 74 65 |.AddPrec|acheMate|
|00002880| 72 69 61 6c 28 4d 61 74 | 65 72 69 61 6c 27 4f 4e |rial(Mat|erial'ON|
|00002890| 53 42 50 54 65 78 74 75 | 72 65 73 2e 66 58 2e 54 |SBPTextu|res.fX.T|
|000028a0| 61 72 67 65 74 41 6c 70 | 68 61 5f 74 65 73 74 27 |argetAlp|ha_test'|
|000028b0| 29 3b 0d 0a 20 20 20 20 | 4c 2e 41 64 64 50 72 65 |);.. |L.AddPre|
|000028c0| 63 61 63 68 65 4d 61 74 | 65 72 69 61 6c 28 4d 61 |cacheMat|erial(Ma|
|000028d0| 74 65 72 69 61 6c 27 4f | 4e 53 42 50 54 65 78 74 |terial'O|NSBPText|
|000028e0| 75 72 65 73 2e 66 58 2e | 54 61 72 67 65 74 41 6c |ures.fX.|TargetAl|
|000028f0| 70 68 61 5f 74 65 73 74 | 32 27 29 3b 0d 0a 20 20 |pha_test|2');.. |
|00002900| 20 20 4c 2e 41 64 64 50 | 72 65 63 61 63 68 65 4d | L.AddP|recacheM|
|00002910| 61 74 65 72 69 61 6c 28 | 4d 61 74 65 72 69 61 6c |aterial(|Material|
|00002920| 27 4f 4e 53 42 50 54 65 | 78 74 75 72 65 73 2e 66 |'ONSBPTe|xtures.f|
|00002930| 58 2e 46 69 72 65 27 29 | 3b 0d 0a 20 20 20 20 4c |X.Fire')|;.. L|
|00002940| 2e 41 64 64 50 72 65 63 | 61 63 68 65 4d 61 74 65 |.AddPrec|acheMate|
|00002950| 72 69 61 6c 28 4d 61 74 | 65 72 69 61 6c 27 56 65 |rial(Mat|erial'Ve|
|00002960| 68 69 63 6c 65 46 58 2e | 50 61 72 74 69 63 6c 65 |hicleFX.|Particle|
|00002970| 73 2e 44 75 73 74 79 43 | 6c 6f 75 64 32 27 29 3b |s.DustyC|loud2');|
|00002980| 0d 0a 20 20 20 20 4c 2e | 41 64 64 50 72 65 63 61 |.. L.|AddPreca|
|00002990| 63 68 65 4d 61 74 65 72 | 69 61 6c 28 4d 61 74 65 |cheMater|ial(Mate|
|000029a0| 72 69 61 6c 27 56 4d 50 | 61 72 74 69 63 6c 65 54 |rial'VMP|articleT|
|000029b0| 65 78 74 75 72 65 73 2e | 44 69 72 74 4b 49 43 4b |extures.|DirtKICK|
|000029c0| 47 52 4f 55 50 2e 64 69 | 72 74 4b 49 43 4b 54 45 |GROUP.di|rtKICKTE|
|000029d0| 58 27 29 3b 0d 0a 20 20 | 20 20 4c 2e 41 64 64 50 |X');.. | L.AddP|
|000029e0| 72 65 63 61 63 68 65 4d | 61 74 65 72 69 61 6c 28 |recacheM|aterial(|
|000029f0| 4d 61 74 65 72 69 61 6c | 27 42 65 6e 54 65 78 30 |Material|'BenTex0|
|00002a00| 31 2e 74 65 78 74 75 72 | 65 73 2e 53 6d 6f 6b 65 |1.textur|es.Smoke|
|00002a10| 50 75 66 66 30 31 27 29 | 3b 0d 0a 20 20 20 20 4c |Puff01')|;.. L|
|00002a20| 2e 41 64 64 50 72 65 63 | 61 63 68 65 4d 61 74 65 |.AddPrec|acheMate|
|00002a30| 72 69 61 6c 28 4d 61 74 | 65 72 69 61 6c 27 4f 4e |rial(Mat|erial'ON|
|00002a40| 53 42 50 54 65 78 74 75 | 72 65 73 2e 66 58 2e 45 |SBPTextu|res.fX.E|
|00002a50| 78 70 6c 6f 5f 53 68 72 | 6f 6f 6d 27 29 3b 0d 0a |xplo_Shr|oom');..|
|00002a60| 20 20 20 20 4c 2e 41 64 | 64 50 72 65 63 61 63 68 | L.Ad|dPrecach|
|00002a70| 65 4d 61 74 65 72 69 61 | 6c 28 4d 61 74 65 72 69 |eMateria|l(Materi|
|00002a80| 61 6c 27 41 72 62 6f 72 | 65 61 54 65 72 72 61 69 |al'Arbor|eaTerrai|
|00002a90| 6e 2e 67 72 6f 75 6e 64 | 2e 66 6c 72 30 32 61 72 |n.ground|.flr02ar|
|00002aa0| 27 29 3b 0d 0a 20 20 20 | 20 4c 2e 41 64 64 50 72 |');.. | L.AddPr|
|00002ab0| 65 63 61 63 68 65 4d 61 | 74 65 72 69 61 6c 28 4d |ecacheMa|terial(M|
|00002ac0| 61 74 65 72 69 61 6c 27 | 4f 4e 53 42 50 54 65 78 |aterial'|ONSBPTex|
|00002ad0| 74 75 72 65 73 2e 66 58 | 2e 54 61 72 67 65 74 41 |tures.fX|.TargetA|
|00002ae0| 6c 70 68 61 4e 6f 27 29 | 3b 0d 0a 20 20 20 20 4c |lphaNo')|;.. L|
|00002af0| 2e 41 64 64 50 72 65 63 | 61 63 68 65 4d 61 74 65 |.AddPrec|acheMate|
|00002b00| 72 69 61 6c 28 4d 61 74 | 65 72 69 61 6c 27 41 62 |rial(Mat|erial'Ab|
|00002b10| 61 64 64 6f 6e 41 72 63 | 68 69 74 65 63 74 75 72 |addonArc|hitectur|
|00002b20| 65 2e 42 61 73 65 2e 62 | 61 73 32 38 67 6f 27 29 |e.Base.b|as28go')|
|00002b30| 3b 0d 0a 7d 0d 0a 0d 0a | 73 69 6d 75 6c 61 74 65 |;..}....|simulate|
|00002b40| 64 20 66 75 6e 63 74 69 | 6f 6e 20 55 70 64 61 74 |d functi|on Updat|
|00002b50| 65 50 72 65 63 61 63 68 | 65 53 74 61 74 69 63 4d |ePrecach|eStaticM|
|00002b60| 65 73 68 65 73 28 29 0d | 0a 7b 0d 0a 09 4c 65 76 |eshes().|.{...Lev|
|00002b70| 65 6c 2e 41 64 64 50 72 | 65 63 61 63 68 65 53 74 |el.AddPr|ecacheSt|
|00002b80| 61 74 69 63 4d 65 73 68 | 28 53 74 61 74 69 63 4d |aticMesh|(StaticM|
|00002b90| 65 73 68 27 4f 4e 53 2d | 42 50 4a 57 31 2e 4d 65 |esh'ONS-|BPJW1.Me|
|00002ba0| 73 68 65 73 2e 4c 61 72 | 67 65 53 68 65 6c 6c 27 |shes.Lar|geShell'|
|00002bb0| 29 3b 0d 0a 09 4c 65 76 | 65 6c 2e 41 64 64 50 72 |);...Lev|el.AddPr|
|00002bc0| 65 63 61 63 68 65 53 74 | 61 74 69 63 4d 65 73 68 |ecacheSt|aticMesh|
|00002bd0| 28 53 74 61 74 69 63 4d | 65 73 68 27 4f 4e 53 2d |(StaticM|esh'ONS-|
|00002be0| 42 50 4a 57 31 2e 4d 65 | 73 68 65 73 2e 54 61 72 |BPJW1.Me|shes.Tar|
|00002bf0| 67 65 74 27 29 3b 0d 0a | 09 4c 65 76 65 6c 2e 41 |get');..|.Level.A|
|00002c00| 64 64 50 72 65 63 61 63 | 68 65 53 74 61 74 69 63 |ddPrecac|heStatic|
|00002c10| 4d 65 73 68 28 53 74 61 | 74 69 63 4d 65 73 68 27 |Mesh(Sta|ticMesh'|
|00002c20| 4f 4e 53 2d 42 50 4a 57 | 31 2e 4d 65 73 68 65 73 |ONS-BPJW|1.Meshes|
|00002c30| 2e 4d 69 6e 69 5f 53 68 | 65 6c 6c 27 29 3b 0d 0a |.Mini_Sh|ell');..|
|00002c40| 09 4c 65 76 65 6c 2e 41 | 64 64 50 72 65 63 61 63 |.Level.A|ddPrecac|
|00002c50| 68 65 53 74 61 74 69 63 | 4d 65 73 68 28 53 74 61 |heStatic|Mesh(Sta|
|00002c60| 74 69 63 4d 65 73 68 27 | 4f 4e 53 2d 42 50 4a 57 |ticMesh'|ONS-BPJW|
|00002c70| 31 2e 4d 65 73 68 65 73 | 2e 54 61 72 67 65 74 4e |1.Meshes|.TargetN|
|00002c80| 6f 27 29 3b 0d 0a 0d 0a | 20 20 20 20 53 75 70 65 |o');....| Supe|
|00002c90| 72 2e 55 70 64 61 74 65 | 50 72 65 63 61 63 68 65 |r.Update|Precache|
|00002ca0| 53 74 61 74 69 63 4d 65 | 73 68 65 73 28 29 3b 0d |StaticMe|shes();.|
|00002cb0| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00002cc0| 66 75 6e 63 74 69 6f 6e | 20 55 70 64 61 74 65 50 |function| UpdateP|
|00002cd0| 72 65 63 61 63 68 65 4d | 61 74 65 72 69 61 6c 73 |recacheM|aterials|
|00002ce0| 28 29 0d 0a 7b 0d 0a 20 | 20 20 20 4c 65 76 65 6c |()..{.. | Level|
|00002cf0| 2e 41 64 64 50 72 65 63 | 61 63 68 65 4d 61 74 65 |.AddPrec|acheMate|
|00002d00| 72 69 61 6c 28 4d 61 74 | 65 72 69 61 6c 27 4f 4e |rial(Mat|erial'ON|
|00002d10| 53 42 50 54 65 78 74 75 | 72 65 73 2e 53 6b 69 6e |SBPTextu|res.Skin|
|00002d20| 73 2e 53 50 4d 41 47 72 | 65 65 6e 27 29 3b 0d 0a |s.SPMAGr|een');..|
|00002d30| 20 20 20 20 4c 65 76 65 | 6c 2e 41 64 64 50 72 65 | Leve|l.AddPre|
|00002d40| 63 61 63 68 65 4d 61 74 | 65 72 69 61 6c 28 4d 61 |cacheMat|erial(Ma|
|00002d50| 74 65 72 69 61 6c 27 41 | 57 2d 32 30 30 34 50 61 |terial'A|W-2004Pa|
|00002d60| 72 74 69 63 6c 65 73 2e | 57 65 61 70 6f 6e 73 2e |rticles.|Weapons.|
|00002d70| 4d 75 7a 7a 6c 65 53 70 | 72 61 79 27 29 3b 0d 0a |MuzzleSp|ray');..|
|00002d80| 20 20 20 20 4c 65 76 65 | 6c 2e 41 64 64 50 72 65 | Leve|l.AddPre|
|00002d90| 63 61 63 68 65 4d 61 74 | 65 72 69 61 6c 28 4d 61 |cacheMat|erial(Ma|
|00002da0| 74 65 72 69 61 6c 27 4f | 4e 53 42 50 54 65 78 74 |terial'O|NSBPText|
|00002db0| 75 72 65 73 2e 53 6b 69 | 6e 73 2e 53 50 4d 41 54 |ures.Ski|ns.SPMAT|
|00002dc0| 61 6e 27 29 3b 0d 0a 20 | 20 20 20 4c 65 76 65 6c |an');.. | Level|
|00002dd0| 2e 41 64 64 50 72 65 63 | 61 63 68 65 4d 61 74 65 |.AddPrec|acheMate|
|00002de0| 72 69 61 6c 28 4d 61 74 | 65 72 69 61 6c 27 41 57 |rial(Mat|erial'AW|
|00002df0| 2d 32 30 30 34 50 61 72 | 74 69 63 6c 65 73 2e 46 |-2004Par|ticles.F|
|00002e00| 69 72 65 2e 4e 61 70 61 | 6c 6d 53 70 6f 74 27 29 |ire.Napa|lmSpot')|
|00002e10| 3b 0d 0a 20 20 20 20 4c | 65 76 65 6c 2e 41 64 64 |;.. L|evel.Add|
|00002e20| 50 72 65 63 61 63 68 65 | 4d 61 74 65 72 69 61 6c |Precache|Material|
|00002e30| 28 4d 61 74 65 72 69 61 | 6c 27 41 57 2d 32 30 30 |(Materia|l'AW-200|
|00002e40| 34 50 61 72 74 69 63 6c | 65 73 2e 46 69 72 65 2e |4Particl|es.Fire.|
|00002e50| 53 6d 6f 6b 65 46 72 61 | 67 6d 65 6e 74 27 29 3b |SmokeFra|gment');|
|00002e60| 0d 0a 20 20 20 20 4c 65 | 76 65 6c 2e 41 64 64 50 |.. Le|vel.AddP|
|00002e70| 72 65 63 61 63 68 65 4d | 61 74 65 72 69 61 6c 28 |recacheM|aterial(|
|00002e80| 4d 61 74 65 72 69 61 6c | 27 4f 4e 53 42 50 54 65 |Material|'ONSBPTe|
|00002e90| 78 74 75 72 65 73 2e 66 | 58 2e 4d 69 73 73 69 6c |xtures.f|X.Missil|
|00002ea0| 65 27 29 3b 0d 0a 20 20 | 20 20 4c 65 76 65 6c 2e |e');.. | Level.|
|00002eb0| 41 64 64 50 72 65 63 61 | 63 68 65 4d 61 74 65 72 |AddPreca|cheMater|
|00002ec0| 69 61 6c 28 4d 61 74 65 | 72 69 61 6c 27 4f 4e 53 |ial(Mate|rial'ONS|
|00002ed0| 42 50 54 65 78 74 75 72 | 65 73 2e 53 6d 6f 6b 65 |BPTextur|es.Smoke|
|00002ee0| 27 29 3b 0d 0a 20 20 20 | 20 4c 65 76 65 6c 2e 41 |');.. | Level.A|
|00002ef0| 64 64 50 72 65 63 61 63 | 68 65 4d 61 74 65 72 69 |ddPrecac|heMateri|
|00002f00| 61 6c 28 4d 61 74 65 72 | 69 61 6c 27 4f 4e 53 42 |al(Mater|ial'ONSB|
|00002f10| 50 54 65 78 74 75 72 65 | 73 2e 66 58 2e 45 78 70 |PTexture|s.fX.Exp|
|00002f20| 6c 6f 54 72 61 6e 73 27 | 29 3b 0d 0a 20 20 20 20 |loTrans'|);.. |
|00002f30| 4c 65 76 65 6c 2e 41 64 | 64 50 72 65 63 61 63 68 |Level.Ad|dPrecach|
|00002f40| 65 4d 61 74 65 72 69 61 | 6c 28 4d 61 74 65 72 69 |eMateria|l(Materi|
|00002f50| 61 6c 27 4f 4e 53 42 50 | 54 65 78 74 75 72 65 73 |al'ONSBP|Textures|
|00002f60| 2e 66 58 2e 46 6c 61 69 | 72 31 27 29 3b 0d 0a 20 |.fX.Flai|r1');.. |
|00002f70| 20 20 20 4c 65 76 65 6c | 2e 41 64 64 50 72 65 63 | Level|.AddPrec|
|00002f80| 61 63 68 65 4d 61 74 65 | 72 69 61 6c 28 4d 61 74 |acheMate|rial(Mat|
|00002f90| 65 72 69 61 6c 27 4f 4e | 53 42 50 54 65 78 74 75 |erial'ON|SBPTextu|
|00002fa0| 72 65 73 2e 66 58 2e 46 | 6c 61 69 72 31 41 6c 70 |res.fX.F|lair1Alp|
|00002fb0| 68 61 27 29 3b 0d 0a 20 | 20 20 20 4c 65 76 65 6c |ha');.. | Level|
|00002fc0| 2e 41 64 64 50 72 65 63 | 61 63 68 65 4d 61 74 65 |.AddPrec|acheMate|
|00002fd0| 72 69 61 6c 28 4d 61 74 | 65 72 69 61 6c 27 4f 4e |rial(Mat|erial'ON|
|00002fe0| 53 42 50 54 65 78 74 75 | 72 65 73 2e 66 58 2e 73 |SBPTextu|res.fX.s|
|00002ff0| 65 65 78 70 74 27 29 3b | 0d 0a 20 20 20 20 4c 65 |eexpt');|.. Le|
|00003000| 76 65 6c 2e 41 64 64 50 | 72 65 63 61 63 68 65 4d |vel.AddP|recacheM|
|00003010| 61 74 65 72 69 61 6c 28 | 4d 61 74 65 72 69 61 6c |aterial(|Material|
|00003020| 27 4f 4e 53 42 50 54 65 | 78 74 75 72 65 73 2e 53 |'ONSBPTe|xtures.S|
|00003030| 6b 69 6e 73 2e 41 72 74 | 69 6c 6c 65 72 79 43 61 |kins.Art|illeryCa|
|00003040| 6d 54 65 78 74 75 72 65 | 27 29 3b 0d 0a 20 20 20 |mTexture|');.. |
|00003050| 20 4c 65 76 65 6c 2e 41 | 64 64 50 72 65 63 61 63 | Level.A|ddPrecac|
|00003060| 68 65 4d 61 74 65 72 69 | 61 6c 28 4d 61 74 65 72 |heMateri|al(Mater|
|00003070| 69 61 6c 27 4f 4e 53 42 | 50 54 65 78 74 75 72 65 |ial'ONSB|PTexture|
|00003080| 73 2e 66 58 2e 54 61 72 | 67 65 74 41 6c 70 68 61 |s.fX.Tar|getAlpha|
|00003090| 5f 74 65 73 74 27 29 3b | 0d 0a 20 20 20 20 4c 65 |_test');|.. Le|
|000030a0| 76 65 6c 2e 41 64 64 50 | 72 65 63 61 63 68 65 4d |vel.AddP|recacheM|
|000030b0| 61 74 65 72 69 61 6c 28 | 4d 61 74 65 72 69 61 6c |aterial(|Material|
|000030c0| 27 4f 4e 53 42 50 54 65 | 78 74 75 72 65 73 2e 66 |'ONSBPTe|xtures.f|
|000030d0| 58 2e 54 61 72 67 65 74 | 41 6c 70 68 61 5f 74 65 |X.Target|Alpha_te|
|000030e0| 73 74 32 27 29 3b 0d 0a | 20 20 20 20 4c 65 76 65 |st2');..| Leve|
|000030f0| 6c 2e 41 64 64 50 72 65 | 63 61 63 68 65 4d 61 74 |l.AddPre|cacheMat|
|00003100| 65 72 69 61 6c 28 4d 61 | 74 65 72 69 61 6c 27 4f |erial(Ma|terial'O|
|00003110| 4e 53 42 50 54 65 78 74 | 75 72 65 73 2e 66 58 2e |NSBPText|ures.fX.|
|00003120| 46 69 72 65 27 29 3b 0d | 0a 20 20 20 20 4c 65 76 |Fire');.|. Lev|
|00003130| 65 6c 2e 41 64 64 50 72 | 65 63 61 63 68 65 4d 61 |el.AddPr|ecacheMa|
|00003140| 74 65 72 69 61 6c 28 4d | 61 74 65 72 69 61 6c 27 |terial(M|aterial'|
|00003150| 56 65 68 69 63 6c 65 46 | 58 2e 50 61 72 74 69 63 |VehicleF|X.Partic|
|00003160| 6c 65 73 2e 44 75 73 74 | 79 43 6c 6f 75 64 32 27 |les.Dust|yCloud2'|
|00003170| 29 3b 0d 0a 20 20 20 20 | 4c 65 76 65 6c 2e 41 64 |);.. |Level.Ad|
|00003180| 64 50 72 65 63 61 63 68 | 65 4d 61 74 65 72 69 61 |dPrecach|eMateria|
|00003190| 6c 28 4d 61 74 65 72 69 | 61 6c 27 56 4d 50 61 72 |l(Materi|al'VMPar|
|000031a0| 74 69 63 6c 65 54 65 78 | 74 75 72 65 73 2e 44 69 |ticleTex|tures.Di|
|000031b0| 72 74 4b 49 43 4b 47 52 | 4f 55 50 2e 64 69 72 74 |rtKICKGR|OUP.dirt|
|000031c0| 4b 49 43 4b 54 45 58 27 | 29 3b 0d 0a 20 20 20 20 |KICKTEX'|);.. |
|000031d0| 4c 65 76 65 6c 2e 41 64 | 64 50 72 65 63 61 63 68 |Level.Ad|dPrecach|
|000031e0| 65 4d 61 74 65 72 69 61 | 6c 28 4d 61 74 65 72 69 |eMateria|l(Materi|
|000031f0| 61 6c 27 42 65 6e 54 65 | 78 30 31 2e 74 65 78 74 |al'BenTe|x01.text|
|00003200| 75 72 65 73 2e 53 6d 6f | 6b 65 50 75 66 66 30 31 |ures.Smo|kePuff01|
|00003210| 27 29 3b 0d 0a 20 20 20 | 20 4c 65 76 65 6c 2e 41 |');.. | Level.A|
|00003220| 64 64 50 72 65 63 61 63 | 68 65 4d 61 74 65 72 69 |ddPrecac|heMateri|
|00003230| 61 6c 28 4d 61 74 65 72 | 69 61 6c 27 4f 4e 53 42 |al(Mater|ial'ONSB|
|00003240| 50 54 65 78 74 75 72 65 | 73 2e 66 58 2e 45 78 70 |PTexture|s.fX.Exp|
|00003250| 6c 6f 5f 53 68 72 6f 6f | 6d 27 29 3b 0d 0a 20 20 |lo_Shroo|m');.. |
|00003260| 20 20 4c 65 76 65 6c 2e | 41 64 64 50 72 65 63 61 | Level.|AddPreca|
|00003270| 63 68 65 4d 61 74 65 72 | 69 61 6c 28 4d 61 74 65 |cheMater|ial(Mate|
|00003280| 72 69 61 6c 27 41 72 62 | 6f 72 65 61 54 65 72 72 |rial'Arb|oreaTerr|
|00003290| 61 69 6e 2e 67 72 6f 75 | 6e 64 2e 66 6c 72 30 32 |ain.grou|nd.flr02|
|000032a0| 61 72 27 29 3b 0d 0a 20 | 20 20 20 4c 65 76 65 6c |ar');.. | Level|
|000032b0| 2e 41 64 64 50 72 65 63 | 61 63 68 65 4d 61 74 65 |.AddPrec|acheMate|
|000032c0| 72 69 61 6c 28 4d 61 74 | 65 72 69 61 6c 27 4f 4e |rial(Mat|erial'ON|
|000032d0| 53 42 50 54 65 78 74 75 | 72 65 73 2e 66 58 2e 54 |SBPTextu|res.fX.T|
|000032e0| 61 72 67 65 74 41 6c 70 | 68 61 4e 6f 27 29 3b 0d |argetAlp|haNo');.|
|000032f0| 0a 20 20 20 20 4c 65 76 | 65 6c 2e 41 64 64 50 72 |. Lev|el.AddPr|
|00003300| 65 63 61 63 68 65 4d 61 | 74 65 72 69 61 6c 28 4d |ecacheMa|terial(M|
|00003310| 61 74 65 72 69 61 6c 27 | 41 62 61 64 64 6f 6e 41 |aterial'|AbaddonA|
|00003320| 72 63 68 69 74 65 63 74 | 75 72 65 2e 42 61 73 65 |rchitect|ure.Base|
|00003330| 2e 62 61 73 32 38 67 6f | 27 29 3b 0d 0a 0d 0a 09 |.bas28go|');.....|
|00003340| 53 75 70 65 72 2e 55 70 | 64 61 74 65 50 72 65 63 |Super.Up|datePrec|
|00003350| 61 63 68 65 4d 61 74 65 | 72 69 61 6c 73 28 29 3b |acheMate|rials();|
|00003360| 0d 0a 7d 0d 0a 0d 0a 00 | |..}.....| |
+--------+-------------------------+-------------------------+--------+--------+